Changes between Version 11 and Version 12 of Docs/Prog/Manual/Foundation/ApplicationModeStartup
- Timestamp:
- 01/23/13 08:51:18 (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Docs/Prog/Manual/Foundation/ApplicationModeStartup
v11 v12 25 25 #!/bin/sh 26 26 if [ "$1" = "stop" ]; then 27 28 27 echo "Stopping..." > /dev/carddsp 28 exit 29 29 fi 30 30 if [ -f /tmp/env.sh ]; then 31 31 . /tmp/env.sh 32 32 fi 33 33 echo " Starting..." > /dev/carddsp … … 40 40 echo "\`L" > /dev/carddsp 41 41 if [ ! -f /proc/mnbd ]; then 42 42 modprobe isp1520 43 43 fi 44 44 passwd -z … … 46 46 stty -F /dev/ttyS1 -Z 47 47 if [ "$updkey" = "85" ]; then 48 48 sh /usr/sbin/diag/filemgr.sh 49 49 elif [ "$updkey" = "84" ] || [ -f /proc/mnbdtest ]; then 50 51 52 50 cd /usr/sbin/diag 51 ./diag c 52 exit 53 53 elif [ "$updkey" = "79" ]; then 54 55 56 57 58 54 echo "\`" > /dev/carddsp 55 echo "Starting OPI diagnostics" > /dev/carddsp 56 mount -t jffs2 /dev/mtdblock1 /mnt/nand 57 /usr/sbin/diag/diag 58 exit 59 59 elif [ "$updkey" = "27" ]; then 60 61 62 60 echo "\`" > /dev/carddsp 61 echo "Startup halted" > /dev/carddsp 62 exit 63 63 fi 64 64 ln -s /usr/sbin/www/html/fonts/big825.fnt /etc/big825.fnt 65 65 ln -s /usr/sbin/www/html/fonts/btn825.fnt /etc/btn825.fnt 66 echo "Application Menu..." > /dev/carddsp67 66 sh /usr/sbin/diag/appmenu.sh & 68 mount -t jffs2 /dev/mtdblock1 /mnt/nand &67 mount -t jffs2 /dev/mtdblock1 /mnt/nand 69 68 # DW Check for Cardinal 825 set to start web server - added -W command to ifconfig to check NOR web server setting 70 69 ifconfig -W 71 70 if [ "$?" = "1" ]; then 72 echo "Starting the boa webserver: " 73 boa $BOA_ARGS 71 echo "Starting the boa webserver: " 72 if [ -f /mnt/nand/cfg/boa.conf ]; then 73 cp /mnt/nand/cfg/boa.conf /etc/conf/boa.conf 74 fi 75 boa $BOA_ARGS 74 76 fi 75 77 ifconfig -T 76 78 if [ "$?" = "2" ]; then 77 echo "Starting the weight server: " 78 /usr/sbin/diag/wtsvr & 79 fi 79 echo "Starting the weight server: " 80 /usr/sbin/diag/wtsvr & 81 fi 82 if [ -f /mnt/nand/cfg/exports ]; then 83 cp /mnt/nand/cfg/exports /etc/exports 84 fi 80 85 ifconfig -L 81 86 if [ "$?" = "4" ]; then 82 telnetd 87 telnetd 88 fi 89 if [ -f /mnt/nand/bin/start.sh ]; then 90 sh /mnt/nand/bin/start.sh & 83 91 fi 84 92 }}}