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

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

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