kiss-mfavila-small/community-mod/stable/sinit/build

10 lines
280 B
Bash
Executable File

#!/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"
install -Dm644 sinit-launch-services.boot "$1/etc/rc.d/sinit-launch-services.boot"