All pastes #466840 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-05-02 03:51 UTC
rendered paste body
#! /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