Add missing init related scripts
This commit is contained in:
parent
c103ece8b1
commit
8e58b3efc2
@ -5,10 +5,17 @@ progname = init
|
||||
export exec_prefix = $(DESTDIR)
|
||||
export sbin = 1
|
||||
include hhl.script.mk
|
||||
VPATH += bin
|
||||
|
||||
scripts += halt
|
||||
scripts += poweroff
|
||||
scripts += reboot
|
||||
scripts += shutdown
|
||||
scripts += telinit
|
||||
|
||||
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)
|
||||
install -m644 $< $@
|
||||
@ -16,7 +23,11 @@ $(sysctl_libdir)/50-default.conf: data/50-default.conf | $(sysctl_libdir)
|
||||
install_conf:
|
||||
cp -R etc $(DESTDIR)
|
||||
|
||||
install_scripts: $(scripts)
|
||||
for script in $(scripts) ; \
|
||||
do install -m755 $$script $(DESTDIR)/bin
|
||||
|
||||
$(sysctl_libdir):
|
||||
install -d $@
|
||||
|
||||
.PHONY: install_conf
|
||||
.PHONY: install_conf install_scripts
|
||||
|
3
world/s6-scripts/bin/halt
Normal file
3
world/s6-scripts/bin/halt
Normal file
@ -0,0 +1,3 @@
|
||||
#!/bin/execlineb -S0
|
||||
|
||||
s6-linux-init-hpr -h $@
|
3
world/s6-scripts/bin/poweroff
Normal file
3
world/s6-scripts/bin/poweroff
Normal file
@ -0,0 +1,3 @@
|
||||
#!/bin/execlineb -S0
|
||||
|
||||
s6-linux-init-hpr -p $@
|
3
world/s6-scripts/bin/reboot
Normal file
3
world/s6-scripts/bin/reboot
Normal file
@ -0,0 +1,3 @@
|
||||
#!/bin/execlineb -S0
|
||||
|
||||
s6-linux-init-hpr -r $@
|
3
world/s6-scripts/bin/shutdown
Normal file
3
world/s6-scripts/bin/shutdown
Normal file
@ -0,0 +1,3 @@
|
||||
#!/bin/execlineb -S0
|
||||
|
||||
s6-linux-init-shutdown $@
|
3
world/s6-scripts/bin/telinit
Normal file
3
world/s6-scripts/bin/telinit
Normal file
@ -0,0 +1,3 @@
|
||||
#!/bin/execlineb -S0
|
||||
|
||||
s6-linux-init-telinit $@
|
Loading…
Reference in New Issue
Block a user