#
# Author: Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
-# $Id$
# Set the path.
PATH=/sbin:/bin:/usr/bin:/usr/sbin
trap "echo" INT SEGV QUIT TERM
set +e
-emit pld.shutdown-started
-emit starting JOB=shutdown
-emit started JOB=shutdown
-
rc_splash "reboot"
# Kill all processes.
[ -x /sbin/poweroff-ups ] && /sbin/poweroff-ups
fi
fi
- [ "$previous" != "unknown" ] && eval halt -d -p -f
+ [ "$previous" != "unknown" ] && halt -d -p -f
else
show "Please stand by while rebooting the $_rebootwhat"; ok
if [ -f /fastboot ]; then
show "On the next boot fsck will be skipped."; ok
fi
- # not really sure where thse events should go
- emit stopped JOB=shutdown
- emit stopping JOB=shutdown
-
if [ -x /sbin/kexec ] && [ "$kexec_loaded" = "1" ]; then
show "Will now restart with kexec"
/sbin/kexec -e
fail
fi
- [ "$previous" != "unknown" ] && eval reboot -d -f
+ [ "$previous" != "unknown" ] && reboot -d -f
fi