diff options
author | Cem Keylan <cem@ckyln.com> | 2020-01-13 20:48:33 +0300 |
---|---|---|
committer | Cem Keylan <cem@ckyln.com> | 2020-01-13 20:48:33 +0300 |
commit | 11b53c25d767fa16671bc0b42158e61c7a2de19f (patch) | |
tree | 7761a24b5e1c345eccaa5efb515b592dd564a42c /extra/sinit/build | |
parent | 86ba980c93f32253648f56560246e51df507a817 (diff) | |
download | repository-11b53c25d767fa16671bc0b42158e61c7a2de19f.tar.gz |
sinit: add to extra at 1.1
Diffstat (limited to 'extra/sinit/build')
-rwxr-xr-x | extra/sinit/build | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/extra/sinit/build b/extra/sinit/build new file mode 100755 index 00000000..182d70cf --- /dev/null +++ b/extra/sinit/build @@ -0,0 +1,11 @@ +#!/bin/sh -e + +make CFLAGS="$CFLAGS -static" PREFIX=/usr DESTDIR="$1" install +mv "$1/usr/bin/sinit" "$1/usr/bin/init" + +install -Dm755 poweroff "$1/usr/bin/poweroff" +install -Dm755 reboot "$1/usr/bin/reboot" + +install -Dm644 sinit-launch-services.boot "$1/etc/init/sinit-launch-services.boot" +install -Dm644 sinit.post.shutdown "$1/etc/init/sinit.post.shutdown" +install -Dm644 sinit.pre.shutdown "$1/etc/init/sinit.pre.shutdown" |