Compare commits

...

2 Commits

Author SHA1 Message Date
Nathan Fisher
e43479df2c Merge branch 'odin' of git.hitchhiker-linux.org:Hitchhiker/src into odin 2022-10-08 02:48:08 +00:00
Nathan Fisher
8e58b3efc2 Add missing init related scripts 2022-10-08 02:47:17 +00:00
6 changed files with 28 additions and 2 deletions

View File

@ -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

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 $@