Reg. datum: 08 oktober 2001
hier is mijn fun_plug script, ik heb geprobeert om ctrl_fanspeed.sh uit te voeren voor de laatste regel (chroot ...) en erna, maar beide geen resultaat.quote:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
| #!/bin/sh # Mount USB Key insmod /mnt/HD_a2/lnx_bin/usb-storage.ko mkdir /mnt/usb #sleep for 15 sec to load the module sleep 15 mount /dev/sdc1 /mnt/usb # Schijven opzet # Root Disk1 export DISK1=/mnt/HD_a2 # Root Disk 2 export DISK2=/mnt/HD_b2 # Root USB export USB=/mnt/usb export PATH=$PATH:$DISK1/lnx_bin: cd $DISK1 #Start Telnet - Kan weg als SSH werkt ./starttelnet.sh # Bind mount disk1 mkdir $USB/etch/$DISK1 mount --bind $DISK1 $USB/etch/$DISK1 # Bind mount disk2 mkdir $USB/etch/$DISK2 mount --bind $DISK2 $USB/etch/$DISK2 # Bind mount rootfs mkdir $USB/etch/mnt/root mount --bind / $USB/etch/mnt/root # Bind mount etch/dev mkdir $USB/etch/dev mount --bind /dev $USB/etch/dev # Bind mount etch/sys mkdir $USB/etch/sys mkdir $USB/etch/sys/crfs mount --bind /sys $USB/etch/sys mount --bind /sys/crfs $USB/etch/sys/crfs # Bind mount etch/web mkdir $USB/etch/web mount --bind /web $USB/etch/web # Bind mount etch/proc mkdir $USB/etch/proc mount --bind /proc $USB/etch/proc # # Mounts cp -f /proc/mounts $USB/etch/etc/mtab busybox3 rm -f $USB/etch/etc/fstab busybox3 touch $USB/etch/etc/fstab busybox3 chroot $USB/etch ./linuxrc #Start fan control script /mnt/HD_a2/ctl_fanspeed.sh |
