1 Commits

Author SHA1 Message Date
Jay Larson
1d78033ebe The following changes were made:
* moved directory creation to package itself instead of usher
  * moved inittab installation from usher to CONFIG
2018-09-30 19:33:42 -05:00
3 changed files with 5 additions and 25 deletions

View File

@@ -15,7 +15,7 @@ REPO = core
BRIEF = System that manages boot and shutdown BRIEF = System that manages boot and shutdown
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 = 10 SNAPVER = 11
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')
@@ -55,9 +55,12 @@ $(ROOT): $(SRCDIR)/src/init
fi fi
@cd $(SRCDIR) && make -C src install ROOT=$(ROOT) && \ @cd $(SRCDIR) && make -C src install ROOT=$(ROOT) && \
for char in S 0 1 2 3 4 5 6; do \
install -v -d -m 755 $(ROOT)/etc/rc$$char.d; \
done && \
install -v -d -m 755 $(ROOT)/etc/init.d && \
install -v -d -m 755 $(ROOT)/usr/share/sysvinit && \ install -v -d -m 755 $(ROOT)/usr/share/sysvinit && \
install -v -d -m 755 $(ROOT)/bin && \ install -v -d -m 755 $(ROOT)/bin && \
install -v -m 644 $(SNAPDIR)/inittab $(ROOT)/usr/share/sysvinit && \
ln -sv ../sbin/killall5 $(ROOT)/bin/pidof ln -sv ../sbin/killall5 $(ROOT)/bin/pidof
clean: clean:

View File

@@ -1,23 +0,0 @@
#!/bin/sh
set -e
case $1 in
preinst)
exit 0
;;
postinst)
install -d -m 755 /etc/init.d
install -d -m 755 /etc/rc{{0..6},S}.d
if [ ! -f /etc/inittab ]; then
install -m 644 /usr/share/sysvinit/inittab /etc/inittab
fi
;;
prerm)
exit 0
;;
postrm)
exit 0
;;
esac