From 9e2becb2a68e237356fb859000f5df0ab48812b9 Mon Sep 17 00:00:00 2001 From: Jay Larson Date: Mon, 24 Oct 2016 15:37:44 -0500 Subject: [PATCH] Added /etc/init.d and /etc/rc{[0-6],S}.d in usher --- Makefile | 2 +- SNAP/usher | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 32a55e0..943ff2c 100644 --- a/Makefile +++ b/Makefile @@ -13,7 +13,7 @@ ARCH = x86_64 URL = https://savannah.nongnu.org/projects/sysvinit DESC = System V style init programs original written by Miquel van Smoorenburg \ that control the booting and shutdown of your system -SNAPVER = sr2 +SNAPVER = sr3 ARCHIVE := $(PWD)/SRC/$(shell ls SRC|egrep '(bz2|gz|tar|xz)$$'|tail -1) TYPE := $(shell file -ib $(ARCHIVE)|cut -d';' -f1|tr -d '\n') diff --git a/SNAP/usher b/SNAP/usher index 5715374..e6ce905 100755 --- a/SNAP/usher +++ b/SNAP/usher @@ -25,6 +25,9 @@ case $1 in exit 0 ;; postinst) + install -d -m 755 ${TARGET}/etc/init.d + install -d -m 755 ${TARGET}/etc/rc{[0-6],S}.d + if [ ! -f ${TARGET}/etc/inittab ]; then echo "${INITTAB}" > ${TARGET}/etc/inittab fi