www.nico.schottelius.org/software/cinit/browse_source/cinit-0.0.7/old/cinit.add.shutdown.reboot.poweroff

16 lines
314 B
Text
Raw Normal View History

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