diff options
author | Cem Keylan <cem@ckyln.com> | 2020-05-07 22:31:20 +0300 |
---|---|---|
committer | Cem Keylan <cem@ckyln.com> | 2020-05-07 22:31:20 +0300 |
commit | 36bca3355980c0b4cbded6867b46cc7e70cd9db0 (patch) | |
tree | 5e145554b29a9d52cbb455ea263c77140d6f72b6 /cem/shinit | |
parent | 535f6e42c155f31b441d560f4e09f4a46567fc00 (diff) | |
download | repository-36bca3355980c0b4cbded6867b46cc7e70cd9db0.tar.gz |
shinit: add new package at git to cem
Diffstat (limited to 'cem/shinit')
-rwxr-xr-x | cem/shinit/build | 7 | ||||
-rw-r--r-- | cem/shinit/checksums | 2 | ||||
-rwxr-xr-x | cem/shinit/files/poweroff | 3 | ||||
-rw-r--r-- | cem/shinit/sources | 2 | ||||
-rw-r--r-- | cem/shinit/version | 1 |
5 files changed, 15 insertions, 0 deletions
diff --git a/cem/shinit/build b/cem/shinit/build new file mode 100755 index 0000000..5baae9d --- /dev/null +++ b/cem/shinit/build @@ -0,0 +1,7 @@ +#!/bin/sh -e + +make DESTDIR="$1" PREFIX=/usr install + +install -Dm755 -t "$1/usr/bin" poweroff +ln -s poweroff "$1/usr/bin/reboot" +ln -s shinit "$1/usr/bin/init" diff --git a/cem/shinit/checksums b/cem/shinit/checksums new file mode 100644 index 0000000..594f3d2 --- /dev/null +++ b/cem/shinit/checksums @@ -0,0 +1,2 @@ +git git+/home/cem/Projects/shinit +4d7a6ddcf195939f14053df3567ff27cdd6f9b8275eb2abcf25153ca64e36ee1 poweroff diff --git a/cem/shinit/files/poweroff b/cem/shinit/files/poweroff new file mode 100755 index 0000000..454cfa7 --- /dev/null +++ b/cem/shinit/files/poweroff @@ -0,0 +1,3 @@ +#!/bin/bash +[ "$(id -u)" -eq 0 ] || exit 1 +/lib/init/rc.shutdown ${0##*/} & disown diff --git a/cem/shinit/sources b/cem/shinit/sources new file mode 100644 index 0000000..bb304f1 --- /dev/null +++ b/cem/shinit/sources @@ -0,0 +1,2 @@ +git+/home/cem/Projects/shinit +files/poweroff diff --git a/cem/shinit/version b/cem/shinit/version new file mode 100644 index 0000000..a383ea1 --- /dev/null +++ b/cem/shinit/version @@ -0,0 +1 @@ +git 1 |