aboutsummaryrefslogtreecommitdiff
path: root/shinit
diff options
context:
space:
mode:
Diffstat (limited to 'shinit')
-rwxr-xr-xshinit/build7
-rw-r--r--shinit/checksums2
-rwxr-xr-xshinit/files/poweroff3
-rw-r--r--shinit/sources2
-rw-r--r--shinit/version1
5 files changed, 15 insertions, 0 deletions
diff --git a/shinit/build b/shinit/build
new file mode 100755
index 0000000..5baae9d
--- /dev/null
+++ b/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/shinit/checksums b/shinit/checksums
new file mode 100644
index 0000000..594f3d2
--- /dev/null
+++ b/shinit/checksums
@@ -0,0 +1,2 @@
+git git+/home/cem/Projects/shinit
+4d7a6ddcf195939f14053df3567ff27cdd6f9b8275eb2abcf25153ca64e36ee1 poweroff
diff --git a/shinit/files/poweroff b/shinit/files/poweroff
new file mode 100755
index 0000000..454cfa7
--- /dev/null
+++ b/shinit/files/poweroff
@@ -0,0 +1,3 @@
+#!/bin/bash
+[ "$(id -u)" -eq 0 ] || exit 1
+/lib/init/rc.shutdown ${0##*/} & disown
diff --git a/shinit/sources b/shinit/sources
new file mode 100644
index 0000000..bb304f1
--- /dev/null
+++ b/shinit/sources
@@ -0,0 +1,2 @@
+git+/home/cem/Projects/shinit
+files/poweroff
diff --git a/shinit/version b/shinit/version
new file mode 100644
index 0000000..a383ea1
--- /dev/null
+++ b/shinit/version
@@ -0,0 +1 @@
+git 1