Changes between Version 11 and Version 12 of Docs/Prog/Manual/Foundation/ApplicationModeStartup


Ignore:
Timestamp:
01/23/13 08:51:18 (11 years ago)
Author:
Don Wilson
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Docs/Prog/Manual/Foundation/ApplicationModeStartup

    v11 v12  
    2525#!/bin/sh
    2626if [ "$1" = "stop" ]; then
    27         echo "Stopping..." > /dev/carddsp
    28         exit
     27        echo "Stopping..." > /dev/carddsp
     28        exit
    2929fi
    3030if [ -f /tmp/env.sh ]; then
    31         . /tmp/env.sh
     31        . /tmp/env.sh
    3232fi
    3333echo "        Starting..." > /dev/carddsp
     
    4040echo "\`L" > /dev/carddsp
    4141if [ ! -f /proc/mnbd ]; then
    42         modprobe isp1520
     42        modprobe isp1520
    4343fi
    4444passwd -z
     
    4646stty -F /dev/ttyS1 -Z
    4747if [ "$updkey" = "85" ]; then
    48         sh /usr/sbin/diag/filemgr.sh
     48        sh /usr/sbin/diag/filemgr.sh
    4949elif [ "$updkey" = "84" ] || [ -f /proc/mnbdtest ]; then
    50         cd /usr/sbin/diag
    51         ./diag c
    52         exit
     50        cd /usr/sbin/diag
     51        ./diag c
     52        exit
    5353elif [ "$updkey" = "79" ]; then
    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
     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
    5959elif [ "$updkey" = "27" ]; then
    60         echo "\`" > /dev/carddsp
    61         echo "Startup halted" > /dev/carddsp
    62         exit
     60        echo "\`" > /dev/carddsp
     61        echo "Startup halted" > /dev/carddsp
     62        exit
    6363fi
    6464ln -s /usr/sbin/www/html/fonts/big825.fnt /etc/big825.fnt
    6565ln -s /usr/sbin/www/html/fonts/btn825.fnt /etc/btn825.fnt
    66 echo "Application Menu..." > /dev/carddsp
    6766sh /usr/sbin/diag/appmenu.sh &
    68 mount -t jffs2 /dev/mtdblock1 /mnt/nand &
     67mount -t jffs2 /dev/mtdblock1 /mnt/nand
    6968# DW Check for Cardinal 825 set to start web server - added -W command to ifconfig to check NOR web server setting
    7069ifconfig -W
    7170if [ "$?" = "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
    7476fi
    7577ifconfig -T
    7678if [ "$?" = "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 &
     81fi
     82        if [ -f /mnt/nand/cfg/exports ]; then
     83                cp /mnt/nand/cfg/exports /etc/exports
     84        fi
    8085ifconfig -L
    8186if [ "$?" = "4" ]; then
    82        telnetd
     87        telnetd
     88fi
     89if [ -f /mnt/nand/bin/start.sh ]; then
     90        sh /mnt/nand/bin/start.sh &
    8391fi
    8492}}}