Added /etc/init.d and /etc/rc{[0-6],S}.d in usher
This commit is contained in:
2
Makefile
2
Makefile
@@ -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')
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user