# cd /etc/config # cat sysinit set -i #set -v # The program creating /startrunning # runs at higher priority then the shell # therefore we can afford to busy wait. # I don't see any solution to this as at this point # it's very possible we don't have access to any programs # (mostly during software update as /bin is empty while test -r /startrunning do true; done export TZ=pst08pdt07,M4.1.0/2,M10.5.0/2 rtc hw Dev -n100 & Dev.ansi -n 3 & Dev.ditto -Q -n 9 & Dev.ditto -Q -Ndit -n 9 & Dev.ditto -Q -Nditt -n 9 & Dev.pty -n5 & Dev.ser 3f8,4 & Dev.ser485 -L 2f8,3 & reopen //0/dev/con1 Pipe & # check if file system of all flash is intact, if not fix it # this command may wait for user input on some critical error chkfsys -Prqu / /telecite/TekCPUDetect export "PATH=/:/bin:/usr/bin:/telecite" export `cat /etc/config/SYSTEM.var` export `cat /CPUConfig.env` Net -n10 -d 4 -r 32 -T & # Start isapnp before any driver... echo Starting plug and play detection, please wait... if [ "$CPU_BOARD" != "VIPER824" ] then pnpfix /etc/config/pnp.conf.79c961.template /pnp.conf.79c961 TKN if test -r /pnp.conf.79c961 then isapnp /pnp.conf.79c961 >/dev/null else echo "ERROR! PNP detection for network card failed!" fi fi if [ "$CPU_BOARD" = "VIPER824" ] then Net.ether82557 -v & else Net.ether2100 -i9 -d5 -p3e0 -v & fi netmap -f # These commands are place here to give time to network driver to initialised # That way we don't have to put a sleep and waste time rm -rf /*.txt /tmp/* # need this because network driver don't put a CR after they display their stuff echo echo prog_version & echo echo on -t /dev/con2 /bin/vdir -V -n /dbase/tmp -m512K & stty -ohflow -ihflow -lkhflow /dev/null 2>/dev/null i=$? if [ "$i" = "0" ]; then echo "Node 1 found, assuming nameloc presence" nameloc -k 1 -w else echo "Starting local locator" nameloc -s$NODE -e$NODE & fi #DO NOT REMOVE ->(sleep) use to let the license driver start. /bin/sleep 2 on -t /dev/dit1 bb -p /dbase/log -m 4 -S on -t /dev/dit2 -p26 dm -p /dbase/cfg # Watchdog needs a valid IP address in the config to set physical id for logs # if there is no ip address defined watchdog will end up setting a default of # 0.0.0.0. To go around this problem dm_get is use to simply set the default # address in case the cfg file has disapear. That way it's still possible to # talk to SCU even though the cfg file is absent. dm_get -d10.0.4.80 -vUNIT_TCPIP_ADDR >/dev/null # give time to dm to start (need when remote debug logging is activated) # and that slows down startup of dm sleep 1 # watchdog -P ---> pour mettre le watchdog en mode passif (disable) *** ne pas u tiliser -P en operation normale *** on -t /dev/dit3 watchdog -S on -t /dev/ditt5 io on -t /dev/ditt6 Tcpip -L node$NODE ifconfig en1 `dm_get -v UNIT_TCPIP_ADDR -d10.0.4.80` `dm_get -d255.255.255.0 -v UNIT_IP_MASK` route add -net `dm_get -v UNIT_TCPIP_ADDR -d10.0.4.80` -host `dm_get -v UNIT_TCP IP_ADDR -d10.0.4.80` -interface -netmask `dm_get -d255.255.255.0 -v UNIT_IP_MASK ` ############################################################# # UNCOMMENT and fix corect IPaddr TO LOG on WINDOWS SERVER # And also add to SYSTEM.var # DEBUGON=1 # DEBUGFILEON=1 # DEBUGBASEDIR=/log # DEBUGNOLIMIT=1 #/bin/SMBfsys & #sleep 1 #user_smb administrator qwerty #mount_smb "//bct01_vncserver1:128.0.3.12/LOGS" /log qwerty ############################################################## echo TCP/IP fully configured on -p9r -t /dev/ditto1 log_mngr -p /dbase -t LOG on -p12r -t /dev/dit4 port_mpx_200t on -p12r -t /dev/dit5 media_mngr on -p12r -t /dev/dit6 disp_status on -t /dev/ditt7 rttf_interface on -t /dev/ditt1 alarm_mngr on -t /dev/ditt2 scada_interface -F on -t /dev/ditt3 audiowav on -t /dev/ditt4 pa_mngr on -p11r -t /dev/ditto4 netraw on -p11r -t /dev/ditto5 socketsrv -s8001 -p /dbase -S & on -p15r -t /dev/ditto6 serialsrv -s8001 -d "/dev/ser1" & on -p9r -t /dev/ditto7 scu_nmgt -p /dbase & on -p16r inetd & on -p16r tinit -t /dev/con1 -T /dev/con[2-3] & # --- end of sysinit.3 ---