Split halt.sh into halt, killprocs, romount and savecache services. The reboot runlevel is removed but mapped to shutdown. The halt script should be moved to the sysvinit package.
24 lines
427 B
Plaintext
24 lines
427 B
Plaintext
#!@PREFIX@/sbin/runscript
|
|
# Copyright 2007-2008 Roy Marples <roy@marples.name>
|
|
# All rights reserved. Released under the 2-clause BSD license.
|
|
|
|
# This script really belongs with the Linux sysvinit package
|
|
|
|
depend()
|
|
{
|
|
after *
|
|
use romount
|
|
}
|
|
|
|
start()
|
|
{
|
|
case "${RUNLEVEL}" in
|
|
0) runlevel=shutdown;;
|
|
6) runlevel=reboot;;
|
|
*) eerror "Unknown runlevel ${RUNLEVEL}"; return 1
|
|
esac
|
|
|
|
. /etc/init.d/"${runlevel}".sh
|
|
return 0
|
|
}
|