import cinit from unix.schottelius.org

Signed-off-by: Nico Schottelius <nico@ikn.schottelius.org>
This commit is contained in:
Nico Schottelius 2009-09-16 12:53:45 +02:00
commit 423ba10303
13396 changed files with 269468 additions and 0 deletions

View file

@ -0,0 +1,15 @@
#!/bin/sh
# Nico Schottelius
# cinit: add shutdown/reboot/poweroff service
set -e
# init variables
. $(dirname $0)/cinit.read-conf
BASEDIR=$DESTDIR/$CINIT_DIR
# create halt, link reboot and poweroff to it
mkdir "$BASEDIR/$C_HALT"
ln -s "$C_HALT" "$BASEDIR/$C_REBOOT"
ln -s "$C_HALT" "$BASEDIR/$C_POWEROFF"