add rc.local, rc.shutdown

This commit is contained in:
Václav Uruba 2021-04-02 11:41:45 +02:00
commit 40b579e4bd
Signed by: uruba
GPG Key ID: 0059B34D61727BB0
3 changed files with 19 additions and 0 deletions

9
Makefile Normal file
View File

@ -0,0 +1,9 @@
install:
install -m755 rc.local $(DESTDIR)/etc
install -m755 rc.shutdown $(DESTDIR)/etc
uninstall:
$(RM) $(DESTDIR)/etc/rc.local
$(RM) $(DESTDIR)/etc/rc.shutdown
.PHONY: install uninstall

5
rc.local Executable file
View File

@ -0,0 +1,5 @@
# Default rc.local for void; add your custom commands here.
#
# This is run by runit in stage 2 before the services are executed
# (see /etc/runit/2).
light -I

5
rc.shutdown Executable file
View File

@ -0,0 +1,5 @@
# Default rc.shutdown for void; add your custom commands here.
#
# This is run by runit in stage 3 after the services are stopped
# (see /etc/runit/3).
light -O