aboutsummaryrefslogtreecommitdiff
path: root/core/sinit/build
diff options
context:
space:
mode:
Diffstat (limited to 'core/sinit/build')
-rwxr-xr-xcore/sinit/build11
1 files changed, 2 insertions, 9 deletions
diff --git a/core/sinit/build b/core/sinit/build
index e51e3f5c..f543146d 100755
--- a/core/sinit/build
+++ b/core/sinit/build
@@ -1,13 +1,6 @@
#!/bin/sh -e
-(
- cd sinit
- make CFLAGS="$CFLAGS -static" PREFIX=/usr DESTDIR="$1" install
-)
+make CFLAGS="$CFLAGS -static" PREFIX=/usr DESTDIR="$1" install
ln -s sinit "$1/usr/bin/init"
-install -Dm755 poweroff "$1/usr/bin/poweroff"
-install -Dm755 reboot "$1/usr/bin/reboot"
-
-# shellcheck disable=2086
-"${CC:-gcc}" -o "$1/usr/bin/kpow" init/bin/kpow.c $CFLAGS -static
+install -Dm755 -t "$1/usr/bin" poweroff reboot