Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
397b46ff3f | |||
ee63bf4a06 | |||
bcd456603b |
4
Makefile
4
Makefile
@@ -118,8 +118,8 @@ install-runit:
|
|||||||
$(LN) $(RUNDIR)/reboot $(DESTDIR)$(RUNITDIR)/
|
$(LN) $(RUNDIR)/reboot $(DESTDIR)$(RUNITDIR)/
|
||||||
$(LN) $(RUNDIR)/stopit $(DESTDIR)$(RUNITDIR)/
|
$(LN) $(RUNDIR)/stopit $(DESTDIR)$(RUNITDIR)/
|
||||||
|
|
||||||
install -d $(DESTDIR)$(RCDIR)
|
install -d $(DESTDIR)$(SYSCONFDIR)
|
||||||
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)
|
||||||
|
12
script/2.in
12
script/2.in
@@ -10,13 +10,13 @@ for arg in $(cat /proc/cmdline); do
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ -x @RCDIR@/rc.local ] && grep -qv '^#' @RCDIR@/rc.local; then
|
|
||||||
@RCDIR@/rc.local
|
|
||||||
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 " runit-artix won't read @RCDIR@/rc.local anymore."
|
|
||||||
fi
|
|
||||||
[ -x @SYSCONFDIR@/rc.local ] && @SYSCONFDIR@/rc.local
|
[ -x @SYSCONFDIR@/rc.local ] && @SYSCONFDIR@/rc.local
|
||||||
|
|
||||||
|
# OpenRC compatibility
|
||||||
|
for script in /etc/local.d/*.start; do
|
||||||
|
[ -x "$script" ] && "$script"
|
||||||
|
done
|
||||||
|
|
||||||
runsvchdir "${runlevel}"
|
runsvchdir "${runlevel}"
|
||||||
|
|
||||||
ln -s @RUNSVDIR@/current @SERVICEDIR@
|
ln -s @RUNSVDIR@/current @SERVICEDIR@
|
||||||
|
13
script/3.in
13
script/3.in
@@ -11,13 +11,12 @@ stat_busy "Exit services ..."
|
|||||||
sv exit @RUNDIR@/service/*
|
sv exit @RUNDIR@/service/*
|
||||||
stat_done
|
stat_done
|
||||||
|
|
||||||
if [ -x @RCDIR@/rc.shutdown ] && grep -qv '^#' @RCDIR@/rc.shutdown; then
|
# OpenRC compatibility
|
||||||
@RCDIR@/rc.shutdown
|
for script in /etc/local.d/*.stop; do
|
||||||
echo "==> @RCDIR@/rc.shutdown has been depreacted. Please move the contents"
|
[ -x "$script" ] && "$script"
|
||||||
echo " of the file to @SYSCONFDIR@/rc.shutdown since the next version of"
|
done
|
||||||
echo " runit-artix won't read @RCDIR@/rc.shutdown anymore."
|
|
||||||
fi
|
[ -x @SYSCONFDIR@/rc.shutdown ] && @SYSCONFDIR@/rc.shutdown
|
||||||
[ -x @SYSCONFDIR@/rc.local ] && @SYSCONFDIR@/rc.local
|
|
||||||
|
|
||||||
run_shutdown
|
run_shutdown
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user