aboutsummaryrefslogtreecommitdiff
path: root/core/sinit/build
blob: 288f4a53bbb6ee36f5bd0e19dc94adbd1b5e4ee6 (plain)
1
2
3
4
5
6
7
#!/bin/sh -e

make CFLAGS="$CFLAGS -static" PREFIX=/usr DESTDIR="$1" install
ln -s sinit "$1/usr/bin/init"

clinst -Dm755 poweroff "$1/usr/bin/poweroff"
clinst -Dm755 reboot "$1/usr/bin/reboot"