#! /bin/sh PATH=/sbin:/bin:/usr/sbin:/usr/bin . /lib/lsb/init-functions log_action_begin_msg "un-mounting the root file system." JOE="`grep -v ' / ' /etc/mtab | cut -d' ' -f2`" [ -z "$JOE" ] && JOE="--version" sync umount $JOE >& /dev/null mount -no remount,ro / ! touch /UNCLEAN >& /dev/null log_action_end_msg $? #! /bin/sh PATH=/sbin:/bin: echo " ##**************## Reboot in progress ! ##**************## reboot -d -f -i