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