Changes between Version 5 and Version 6 of Docs/Prog/Manual/Foundation/ApplicationModeStartup


Ignore:
Timestamp:
08/24/12 13:07:15 (12 years ago)
Author:
Don Wilson
Comment:

--

Legend:

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

    v5 v6  
    1 [[TOC(heading=Table of Contents, Docs/Prog/*)]]
     1
    22= Application Mode Startup =
    33== Introduction ==
     
    2323Output:
    2424{{{
    25 #!Lineno
    26 #!sh
    2725#!/bin/sh
    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
     26if [ "$1" = "stop" ]; then
     27        echo "Stopping..." > /dev/carddsp
     28        exit
     29fi
     30if [ -f /tmp/env.sh ]; then
     31        . /tmp/env.sh
     32fi
     33echo "        Starting..." > /dev/carddsp
     34modprobe i2c-coldfire
    4035modprobe max734x
    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
     43echo "  U)pdate  T)est" > /dev/carddsp
     44/usr/sbin/diag/waitkey 3
     45updkey=$?
     46echo "\`L" > /dev/carddsp
     47if [ ! -f /proc/mnbd ]; then
     48        modprobe isp1520
     49fi
     50passwd -z
     51stty -F /dev/ttyS0 -Z
     52stty -F /dev/ttyS1 -Z
     53if [ "$updkey" = "85" ]; then
     54        sh /usr/sbin/diag/filemgr.sh
     55elif [ "$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
     62elif [ "$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
     68elif [ "$updkey" = "27" ]; then
     69        echo "\`" > /dev/carddsp
     70        echo "Startup halted" > /dev/carddsp
     71        exit
     72fi
     73ln -s /usr/sbin/www/html/fonts/big825.fnt /etc/big825.fnt
     74ln -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
    45116}}}
    46117
     
    52123 * i2c-mcf    module for coldfire i2c communications – loading this also causes i2c-core to be loaded
    53124 * max734x    module for keypad/beeper access
    54  * isp1520    module for i2c initialization of isp1520 usb hub
     125 * isp1520    module for i2c initialization of isp1520 usb hub (not used for newer main boards 2012 and above)
    55126
    56127You can see what modules are loaded by typing: