Add missing init related scripts

This commit is contained in:
Nathan Fisher 2022-10-08 02:47:17 +00:00
parent c103ece8b1
commit 8e58b3efc2
6 changed files with 28 additions and 2 deletions

View File

@ -5,10 +5,17 @@ progname = init
export exec_prefix = $(DESTDIR) export exec_prefix = $(DESTDIR)
export sbin = 1 export sbin = 1
include hhl.script.mk include hhl.script.mk
VPATH += bin
scripts += halt
scripts += poweroff
scripts += reboot
scripts += shutdown
scripts += telinit
sysctl_libdir = $(DESTDIR)/usr/lib/sysctl.d sysctl_libdir = $(DESTDIR)/usr/lib/sysctl.d
install: $(sysctl_libdir)/50-default.conf install_conf install: $(sysctl_libdir)/50-default.conf install_conf install_scripts
$(sysctl_libdir)/50-default.conf: data/50-default.conf | $(sysctl_libdir) $(sysctl_libdir)/50-default.conf: data/50-default.conf | $(sysctl_libdir)
install -m644 $< $@ install -m644 $< $@
@ -16,7 +23,11 @@ $(sysctl_libdir)/50-default.conf: data/50-default.conf | $(sysctl_libdir)
install_conf: install_conf:
cp -R etc $(DESTDIR) cp -R etc $(DESTDIR)
install_scripts: $(scripts)
for script in $(scripts) ; \
do install -m755 $$script $(DESTDIR)/bin
$(sysctl_libdir): $(sysctl_libdir):
install -d $@ install -d $@
.PHONY: install_conf .PHONY: install_conf install_scripts

View File

@ -0,0 +1,3 @@
#!/bin/execlineb -S0
s6-linux-init-hpr -h $@

View File

@ -0,0 +1,3 @@
#!/bin/execlineb -S0
s6-linux-init-hpr -p $@

View File

@ -0,0 +1,3 @@
#!/bin/execlineb -S0
s6-linux-init-hpr -r $@

View File

@ -0,0 +1,3 @@
#!/bin/execlineb -S0
s6-linux-init-shutdown $@

View File

@ -0,0 +1,3 @@
#!/bin/execlineb -S0
s6-linux-init-telinit $@