Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
bf99596e5e |
6
Makefile
6
Makefile
@@ -26,7 +26,7 @@ STAGES = \
|
||||
script/3 \
|
||||
script/ctrlaltdel
|
||||
|
||||
RCLOCAL = script/rc.local script/rc.shutdown
|
||||
RCLOCAL = script/rc.local.start script/rc.shutdown.stop
|
||||
|
||||
AGETTY_CONSOLE = $(wildcard sv/agetty-console/*)
|
||||
AGETTY_CONSOLE_S = supervise.agetty-console
|
||||
@@ -118,8 +118,8 @@ install-runit:
|
||||
$(LN) $(RUNDIR)/reboot $(DESTDIR)$(RUNITDIR)/
|
||||
$(LN) $(RUNDIR)/stopit $(DESTDIR)$(RUNITDIR)/
|
||||
|
||||
install -d $(DESTDIR)$(SYSCONFDIR)
|
||||
install -m755 $(RCLOCAL) $(DESTDIR)$(SYSCONFDIR)
|
||||
install -d $(DESTDIR)$(SYSCONFDIR)/local.d
|
||||
install -m755 $(RCLOCAL) $(DESTDIR)$(SYSCONFDIR)/local.d
|
||||
|
||||
install -d $(DESTDIR)$(BINDIR)
|
||||
install -m755 $(BIN) $(DESTDIR)$(BINDIR)
|
||||
|
@@ -10,10 +10,8 @@ for arg in $(cat /proc/cmdline); do
|
||||
fi
|
||||
done
|
||||
|
||||
[ -x @SYSCONFDIR@/rc.local ] && @SYSCONFDIR@/rc.local
|
||||
|
||||
# OpenRC compatibility
|
||||
for script in /etc/local.d/*.start; do
|
||||
# Hacky hacky OpenRC compatibility
|
||||
for script in @SYSCONFDIR@/local.d/*.start; do
|
||||
[ -x "$script" ] && "$script"
|
||||
done
|
||||
|
||||
|
@@ -11,13 +11,11 @@ stat_busy "Exit services ..."
|
||||
sv exit @RUNDIR@/service/*
|
||||
stat_done
|
||||
|
||||
# OpenRC compatibility
|
||||
for script in /etc/local.d/*.stop; do
|
||||
# Hacky hacky OpenRC compatibility
|
||||
for script in @SYSCONFDIR@/local.d/*.stop; do
|
||||
[ -x "$script" ] && "$script"
|
||||
done
|
||||
|
||||
[ -x @SYSCONFDIR@/rc.shutdown ] && @SYSCONFDIR@/rc.shutdown
|
||||
|
||||
run_shutdown
|
||||
|
||||
if [ -e @RUNDIR@/reboot ]; then
|
||||
|
@@ -1,4 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
[ ! -x @SYSCONFDIR@/rc.local ] && cat > @SYSCONFDIR@/rc.local << EOF
|
||||
# @SYSCONFDIR@/rc.local -- rc.local for Artix Linux
|
||||
#
|
||||
# Enter your custom commands here. It will be executed on stage 2
|
||||
# before running services.
|
||||
EOF
|
||||
|
||||
. @SYSCONFDIR@/rc.local
|
@@ -1,4 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
[ ! -x @SYSCONFDIR@/rc.shutdown ] && cat > @SYSCONFDIR@/rc.shutdown << EOF
|
||||
# @SYSCONFDIR@/rc.shutdown -- rc.shutdown for Artix Linux
|
||||
#
|
||||
# Enter your custom commands here. It will be executed on stage 3
|
||||
# after stopping services.
|
||||
EOF
|
||||
|
||||
. @SYSCONFDIR@/rc.shutdown
|
Reference in New Issue
Block a user