rc script: (re)start hadcon at reboot
( ...Copy of http://wiki.gsi.de/Epics.HowToSetupHadesIOCsRestartAtRebootHadconRcScript?rev=r1.2 which cannot be included by Twiki ... )
%begin bash%
#!/bin/sh
# rc
# script called at system startup/reboot
#
# [...] commented out code
#
# ---------------------------
# set the time server
if [ ! -e "/etc/localtime" ]
then
ln -s /home/hadaq/Berlin /etc/localtime
fi
/home/hadaq/ntpdate 140.181.90.22
# ---------------------------
# reset MAC address to have the same last to digits of the hostname
# - checks in script $resetMACsScript
# for matching hostnames and reconfigures eth0
# P.Zumbruch, GSI, 13-01-2010
resetMACsScript=/home/hadaq/EPICS/startupProcedures/resetMACs.sh
[ -x "$resetMACsScript" ] && $resetMACsScript -e eth0 || echo "$resetMACsScript" failed
unset resetMACsScript
# ---------------------------
# start EPICS IOC script
# - checks in script $startEpicsIocScript
# for matching hostnames and starts IOC in background
# P.Zumbruch, GSI, 13-01-2010
startEpicsIocScript=/home/hadaq/EPICS/startupProcedures/startEpicsIoc.sh
[ -x "$startEpicsIocScript" ] && $startEpicsIocScript || echo "$startEpicsIocScript" failed
unset startEpicsIocScript
# ---------------------------
export PATH=$PATH:/home/hadaq:/home/hadaq/bin
%end%
--
PeterZumbruch - 14 Jan 2010