rendered paste bodyRCS file: /cvs/emc2/scripts/emc.in,v
retrieving revision 1.75
diff -u -p -u -r1.75 emc.in
--- emc.in 8 Feb 2007 02:04:02 -0000 1.75
+++ emc.in 17 Feb 2007 20:48:12 -0000
@@ -382,6 +382,12 @@ function Cleanup() {
echo "lockfile still not removed"
fi
+ SHUTDOWN=`$INIVAR -ini $INIFILE -var HALFILE -sec SHUTDOWN 2> /dev/null`
+ if [ -n "$SHUTDOWN" ]; then
+ echo "Running HAL shutdown script"
+ $HALCMD -f $SHUTDOWN
+ fi
+
echo "Stopping realtime threads" >> $DEBUG_FILE
$HALCMD stop
echo "Unloading hal components" >> $DEBUG_FILE