Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
c75de34303 | ||
![]() |
6453301c3b | ||
![]() |
454078d6a0 |
@@ -6,6 +6,7 @@ PATH=/usr/bin:/usr/sbin
|
||||
|
||||
run_sysinit
|
||||
|
||||
install -m100 /dev/null @RUNDIR@/stopit
|
||||
install -m000 /dev/null @RUNDIR@/stopit
|
||||
install -m000 /dev/null @RUNDIR@/reboot
|
||||
|
||||
status "Initialization complete"
|
||||
|
@@ -19,10 +19,6 @@ if [ -x @RCDIR@/rc.shutdown ] && grep -qv '^#' @RCDIR@/rc.shutdown; then
|
||||
fi
|
||||
[ -x @SYSCONFDIR@/rc.local ] && @SYSCONFDIR@/rc.local
|
||||
|
||||
if [ -e @RUNDIR@/reboot ]; then
|
||||
chmod 100 @RUNDIR@/reboot
|
||||
fi
|
||||
|
||||
run_shutdown
|
||||
|
||||
if [ -e @RUNDIR@/reboot ]; then
|
||||
|
@@ -3,8 +3,11 @@
|
||||
PATH=/usr/bin:/usr/sbin
|
||||
MSG="System is going down..."
|
||||
|
||||
# We check for this file after receiving a SIGCONT to move to stage3
|
||||
chmod 100 @RUNDIR@/stopit
|
||||
|
||||
# We check for this file in stage3 to halt or reboot
|
||||
touch @RUNDIR@/reboot
|
||||
chmod 100 @RUNDIR@/reboot
|
||||
|
||||
# Proceed with shutdown process
|
||||
echo "$MSG" | wall
|
||||
|
Reference in New Issue
Block a user