aboutsummaryrefslogtreecommitdiff
path: root/core/minit/build
diff options
context:
space:
mode:
Diffstat (limited to 'core/minit/build')
-rwxr-xr-xcore/minit/build10
1 files changed, 10 insertions, 0 deletions
diff --git a/core/minit/build b/core/minit/build
new file mode 100755
index 00000000..608e17c4
--- /dev/null
+++ b/core/minit/build
@@ -0,0 +1,10 @@
+#!/bin/sh -e
+
+make
+make DESTDIR="$1" PREFIX=/usr install
+
+ln -s minit "$1/usr/bin/init"
+
+install -Dm755 -t "$1/usr/bin" reboot poweroff
+install -Dm644 launch-services.boot "$1/etc/init/launch-services.boot"
+install -Dm644 minit.post.shutdown "$1/etc/init/minit.post.shutdown"