From 40b579e4bd318597293d7877acee94a78aea6e78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Uruba?= Date: Fri, 2 Apr 2021 11:41:45 +0200 Subject: [PATCH] add rc.local, rc.shutdown --- Makefile | 9 +++++++++ rc.local | 5 +++++ rc.shutdown | 5 +++++ 3 files changed, 19 insertions(+) create mode 100644 Makefile create mode 100755 rc.local create mode 100755 rc.shutdown diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..256777a --- /dev/null +++ b/Makefile @@ -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 diff --git a/rc.local b/rc.local new file mode 100755 index 0000000..b4714c0 --- /dev/null +++ b/rc.local @@ -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 diff --git a/rc.shutdown b/rc.shutdown new file mode 100755 index 0000000..b9d56de --- /dev/null +++ b/rc.shutdown @@ -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