Sync-on-boot:node:/etc/rc.local
From Rost Lab Open
rc.local
#!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error. # # In order to enable or disable this script just change the execution # bits. # # By default this script does nothing. PATH="/usr/sbin:/usr/bin:/sbin:/bin"; bootloaderinstall() { if [ -s /etc/clustcontrol/default ]; then . /etc/clustcontrol/default; fi if [ -s "/etc/clustcontrol/${HOSTNAME}" ]; then . "/etc/clustcontrol/${HOSTNAME}"; fi cat /usr/lib/syslinux/mbr.bin > "${CCSFDISKDEV}"; extlinux --install /boot/extlinux; /bin/rm /etc/ccnewrootfs; } if [ "x${HOSTNAME}" != "xupdatenode.rostclust" -a -e /etc/ccnewrootfs ]; then bootloaderinstall; fi; exit 0