aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcem/shinit/build7
-rw-r--r--cem/shinit/checksums2
-rwxr-xr-xcem/shinit/files/poweroff3
-rw-r--r--cem/shinit/sources2
-rw-r--r--cem/shinit/version1
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