#!/bin/sh # # System herunterfahren . /etc/init.d/rc.functions # splash screen aktivieren echo 0 > /var/spool/bootstep export BOOTSTEPS=$STOPSTEPS export splash="silent" echo "show 0" 2>/dev/null > /proc/splash echo "silent" 2>/dev/null > /proc/splash chvt 1 echo -e "\nSystem going down now."; check_status # Hardware Uhr stellen echo "Setting hardware clock:"; hwclock -w -u; check_status # Stop Scripte ausführen /etc/init.d/rc.init stop # Save number of downsteps update_setting STOPSTEPS $(( `cat /var/spool/bootstep` + 2 )) # alles unmounten echo "Syncing filesystems:"; sync; check_status echo "Unmounting filesystems:"; check_status umount -a -r 2>>/dev/stdlog eval $POWEROFF_LAST_CMD