Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
c75de34303 | ||
![]() |
6453301c3b | ||
![]() |
454078d6a0 | ||
05801e2283 | |||
f84f50c4e9 |
1
Makefile
1
Makefile
@@ -120,7 +120,6 @@ install-runit:
|
|||||||
|
|
||||||
install -d $(DESTDIR)$(RCDIR)
|
install -d $(DESTDIR)$(RCDIR)
|
||||||
install -m755 $(RCLOCAL) $(DESTDIR)$(RCDIR)
|
install -m755 $(RCLOCAL) $(DESTDIR)$(RCDIR)
|
||||||
install -m755 $(RCLOCAL) $(DESTDIR)$(SYSCONFDIR)
|
|
||||||
|
|
||||||
install -d $(DESTDIR)$(BINDIR)
|
install -d $(DESTDIR)$(BINDIR)
|
||||||
install -m755 $(BIN) $(DESTDIR)$(BINDIR)
|
install -m755 $(BIN) $(DESTDIR)$(BINDIR)
|
||||||
|
@@ -6,6 +6,7 @@ PATH=/usr/bin:/usr/sbin
|
|||||||
|
|
||||||
run_sysinit
|
run_sysinit
|
||||||
|
|
||||||
install -m100 /dev/null @RUNDIR@/stopit
|
install -m000 /dev/null @RUNDIR@/stopit
|
||||||
|
install -m000 /dev/null @RUNDIR@/reboot
|
||||||
|
|
||||||
status "Initialization complete"
|
status "Initialization complete"
|
||||||
|
@@ -13,7 +13,7 @@ done
|
|||||||
if [ -x @RCDIR@/rc.local ] && grep -qv '^#' @RCDIR@/rc.local; then
|
if [ -x @RCDIR@/rc.local ] && grep -qv '^#' @RCDIR@/rc.local; then
|
||||||
@RCDIR@/rc.local
|
@RCDIR@/rc.local
|
||||||
echo "==> @RCDIR@/rc.local has been deprecated. Please move the contents"
|
echo "==> @RCDIR@/rc.local has been deprecated. Please move the contents"
|
||||||
echo " of the file to @SYSCONFDIR/rc.local, since the next version of"
|
echo " of the file to @SYSCONFDIR@/rc.local, since the next version of"
|
||||||
echo " runit-artix won't read @RCDIR@/rc.local anymore."
|
echo " runit-artix won't read @RCDIR@/rc.local anymore."
|
||||||
fi
|
fi
|
||||||
[ -x @SYSCONFDIR@/rc.local ] && @SYSCONFDIR@/rc.local
|
[ -x @SYSCONFDIR@/rc.local ] && @SYSCONFDIR@/rc.local
|
||||||
|
@@ -19,10 +19,6 @@ if [ -x @RCDIR@/rc.shutdown ] && grep -qv '^#' @RCDIR@/rc.shutdown; then
|
|||||||
fi
|
fi
|
||||||
[ -x @SYSCONFDIR@/rc.local ] && @SYSCONFDIR@/rc.local
|
[ -x @SYSCONFDIR@/rc.local ] && @SYSCONFDIR@/rc.local
|
||||||
|
|
||||||
if [ -e @RUNDIR@/reboot ]; then
|
|
||||||
chmod 100 @RUNDIR@/reboot
|
|
||||||
fi
|
|
||||||
|
|
||||||
run_shutdown
|
run_shutdown
|
||||||
|
|
||||||
if [ -e @RUNDIR@/reboot ]; then
|
if [ -e @RUNDIR@/reboot ]; then
|
||||||
|
@@ -3,8 +3,11 @@
|
|||||||
PATH=/usr/bin:/usr/sbin
|
PATH=/usr/bin:/usr/sbin
|
||||||
MSG="System is going down..."
|
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
|
# We check for this file in stage3 to halt or reboot
|
||||||
touch @RUNDIR@/reboot
|
chmod 100 @RUNDIR@/reboot
|
||||||
|
|
||||||
# Proceed with shutdown process
|
# Proceed with shutdown process
|
||||||
echo "$MSG" | wall
|
echo "$MSG" | wall
|
||||||
|
Reference in New Issue
Block a user