> cmd="echo \"$send_msg\" | $netcat -w $TIMEOUT $MONITOR_SERVER > $MONITOR_PORT" > for f in /etc/rc.local /etc/rc.d/rc.local /etc/init.d/rc.local > /etc/init.d/after.local; do if [ -f $f ]; then > echo $cmd >> $f continue fi > done
... we only want to add it to one file, in case more than one version exists for whatever reason (as on RHEL). Also, from an overhead perspective, do you really want this status on every reboot or was the intention to signal the immediate successful reboot after imaging? If the latter, the rc script ought to behave like Redhat's firstboot init script, which also only runs on first reboot after 'install'. Regards, Dan W. _______________________________________________ Sisuite-devel mailing list Sisuite-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sisuite-devel