aboutsummaryrefslogtreecommitdiff
path: root/core/sinit/build
blob: e85d78aa3223df6c1d307c511f365085703e556a (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"

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