diff options
author | Cem Keylan <cem@ckyln.com> | 2020-02-07 17:34:55 +0300 |
---|---|---|
committer | Cem Keylan <cem@ckyln.com> | 2020-02-07 17:34:55 +0300 |
commit | 23055b3d7da4bfef00d302e91b87fa36f6f9be96 (patch) | |
tree | 27ccbaa55473bacd1d48c17de841584fb2c12fca /core/sinit/post-install | |
parent | c416432b8cc934b768a19242b976c159f07a22a5 (diff) | |
download | repository-23055b3d7da4bfef00d302e91b87fa36f6f9be96.tar.gz |
sinit: add changes
* Use official sources
* Switch to 1.0
* Remove the ubase dependency
* Use kpow by Dylan Araps for shutdown
Diffstat (limited to 'core/sinit/post-install')
-rwxr-xr-x | core/sinit/post-install | 28 |
1 files changed, 19 insertions, 9 deletions
diff --git a/core/sinit/post-install b/core/sinit/post-install index 1f3fdf30..50170454 100755 --- a/core/sinit/post-install +++ b/core/sinit/post-install @@ -1,16 +1,26 @@ #!/bin/sh -e -grep -q SINIT_ /etc/init/rc.conf || cat <<EOF >> /etc/init/rc.conf +cat <<EOF -# Comment these to run the scripts for sinit -SINIT_SHUTDOWN_HOOKS=1 -SINIT_ENABLE_GETTY=1 -SINIT_ENABLE_RUNIT=1 -EOF +!! IMPORTANT !! -cat <<EOF +To start using sinit, edit +/etc/init/sinit-launch-services.boot +And uncomment the getty function, and +Optionally uncomment the runit function +If you deem necessary. + +sinit is installed as /usr/bin/sinit. It +can fully replace busybox init by running +the following command. + + kiss a | grep ^sinit | kiss a - -Important: If you want to replace sinit, you need to -edit your /etc/init/rc.conf to disable SINIT variables." +NOTE: If swapping from busybox init on a + running system, shutdown/reboot by + invoking 'busybox-init poweroff'. + sinit's poweroff/reboot utilities + can't be of use until it is actually + running. EOF |