www.nico.schottelius.org/software/cinit/browse_source/cinit-0.0.8/old/cinit.add.shutdown.reboot.poweroff
Nico Schottelius 423ba10303 import cinit from unix.schottelius.org
Signed-off-by: Nico Schottelius <nico@ikn.schottelius.org>
2009-09-16 12:53:45 +02:00

15 lines
314 B
Bash

#!/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"