28 | | # rc.local, Local initialization tasks |
29 | | # setup ppp options file |
30 | | |
31 | | if [ ! –f /etc/ppp/options.orig –a –f /etc/ppp/options ] |
32 | | then |
33 | | mv /etc/ppp/options /etc/ppp/options.orig |
34 | | ln –s options.pinpad_target /etc/ppp/options |
35 | | fi |
36 | | echo “Starting Indicator” |
37 | | echo “ Starting…” > /dev/carddsp |
38 | | modprobe mnbd-comm |
39 | | modprobe i2c-mcf |
| 26 | if [ "$1" = "stop" ]; then |
| 27 | echo "Stopping..." > /dev/carddsp |
| 28 | exit |
| 29 | fi |
| 30 | if [ -f /tmp/env.sh ]; then |
| 31 | . /tmp/env.sh |
| 32 | fi |
| 33 | echo " Starting..." > /dev/carddsp |
| 34 | modprobe i2c-coldfire |
41 | | modprobe isp1520 |
42 | | mount –t jffs2 /dev/mtdblock1 /mnt/nand |
43 | | cd /mnt/nand/indicator |
44 | | sh appmenu.sh & |
| 36 | #sleep 1 |
| 37 | #if [ -f /tmp/mnbdcomm2 ]; then |
| 38 | # modprobe mnbd-comm2 |
| 39 | #else |
| 40 | modprobe mnbd-comm |
| 41 | #fi |
| 42 | #sleep 1 |
| 43 | echo " U)pdate T)est" > /dev/carddsp |
| 44 | /usr/sbin/diag/waitkey 3 |
| 45 | updkey=$? |
| 46 | echo "\`L" > /dev/carddsp |
| 47 | if [ ! -f /proc/mnbd ]; then |
| 48 | modprobe isp1520 |
| 49 | fi |
| 50 | passwd -z |
| 51 | stty -F /dev/ttyS0 -Z |
| 52 | stty -F /dev/ttyS1 -Z |
| 53 | if [ "$updkey" = "85" ]; then |
| 54 | sh /usr/sbin/diag/filemgr.sh |
| 55 | elif [ "$updkey" = "84" ] || [ -f /proc/mnbdtest ]; then |
| 56 | cd /usr/sbin/diag |
| 57 | ./diag c |
| 58 | # if [ "$?" = "5" ]; then |
| 59 | # sh /mnt/nfs/updmnbd.sh |
| 60 | exit |
| 61 | # fi |
| 62 | elif [ "$updkey" = "79" ]; then |
| 63 | echo "\`" > /dev/carddsp |
| 64 | echo "Starting OPI diagnostics" > /dev/carddsp |
| 65 | mount -t jffs2 /dev/mtdblock1 /mnt/nand |
| 66 | /usr/sbin/diag/diag |
| 67 | exit |
| 68 | elif [ "$updkey" = "27" ]; then |
| 69 | echo "\`" > /dev/carddsp |
| 70 | echo "Startup halted" > /dev/carddsp |
| 71 | exit |
| 72 | fi |
| 73 | ln -s /usr/sbin/www/html/fonts/big825.fnt /etc/big825.fnt |
| 74 | ln -s /usr/sbin/www/html/fonts/btn825.fnt /etc/btn825.fnt |
| 75 | #mount -t jffs2 /dev/mtdblock1 /mnt/nand |
| 76 | # If nand is not yet configured - run diagnostics |
| 77 | #if [ -f /mnt/nand/bin/appmenu.sh ]; then |
| 78 | # PATH=$PATH:/usr/sbin/diag:/mnt/nand/bin:. |
| 79 | # chmod +x /mnt/nand/bin/* |
| 80 | # echo "\`" > /dev/carddsp |
| 81 | echo "Application Menu..." > /dev/carddsp |
| 82 | # sh /mnt/nand/bin/appmenu.sh & |
| 83 | sh /usr/sbin/diag/appmenu.sh & |
| 84 | mount -t jffs2 /dev/mtdblock1 /mnt/nand & |
| 85 | # DW Check for Cardinal 825 set to start web server - added -W command t o ifconfig to check NOR web server setting |
| 86 | ifconfig -W |
| 87 | if [ "$?" = "1" ]; then |
| 88 | echo "Starting the boa webserver: " |
| 89 | # if [ -f /mnt/nand/cfg/boa.conf ] |
| 90 | # then |
| 91 | # cp /mnt/nand/cfg/boa.conf /etc/conf/boa.conf |
| 92 | # fi |
| 93 | boa $BOA_ARGS |
| 94 | fi |
| 95 | ifconfig -T |
| 96 | if [ "$?" = "2" ]; then |
| 97 | echo "Starting the weight server: " |
| 98 | /usr/sbin/diag/wtsvr & |
| 99 | fi |
| 100 | #if [ -f /mnt/nand/cfg/exports ]; then |
| 101 | # cp /mnt/nand/cfg/exports /etc/exports |
| 102 | #fi |
| 103 | ifconfig -L |
| 104 | if [ "$?" = "4" ]; then |
| 105 | telnetd |
| 106 | fi |
| 107 | #else |
| 108 | # PATH=$PATH:/usr/sbin/diag:. |
| 109 | # cd /usr/sbin/diag |
| 110 | # ./diag |
| 111 | # if [ "$?" = "10" ]; then |
| 112 | # sh /mnt/nfs/cpynand.sh & |
| 113 | # fi |
| 114 | #fi |
| 115 | |