Added /etc/init.d and /etc/rc{[0-6],S}.d in usher

This commit is contained in:
2016-10-24 15:37:44 -05:00
parent 223dfcdde9
commit 9e2becb2a6
2 changed files with 4 additions and 1 deletions

View File

@@ -13,7 +13,7 @@ ARCH = x86_64
URL = https://savannah.nongnu.org/projects/sysvinit URL = https://savannah.nongnu.org/projects/sysvinit
DESC = System V style init programs original written by Miquel van Smoorenburg \ DESC = System V style init programs original written by Miquel van Smoorenburg \
that control the booting and shutdown of your system 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) ARCHIVE := $(PWD)/SRC/$(shell ls SRC|egrep '(bz2|gz|tar|xz)$$'|tail -1)
TYPE := $(shell file -ib $(ARCHIVE)|cut -d';' -f1|tr -d '\n') TYPE := $(shell file -ib $(ARCHIVE)|cut -d';' -f1|tr -d '\n')

View File

@@ -25,6 +25,9 @@ case $1 in
exit 0 exit 0
;; ;;
postinst) 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 if [ ! -f ${TARGET}/etc/inittab ]; then
echo "${INITTAB}" > ${TARGET}/etc/inittab echo "${INITTAB}" > ${TARGET}/etc/inittab
fi fi