# HG changeset patch # User Christophe Lincoln # Date 1298569787 -3600 # Node ID 1aca016619c0fbe7c382178cc63d1c7e4e96047a # Parent be7c1a2e97d7df7029cb4fcffc66184709a76adf rc.shutdown: Shutdown much faster diff -r be7c1a2e97d7 -r 1aca016619c0 etc/init.d/rc.shutdown --- a/etc/init.d/rc.shutdown Thu Feb 24 18:48:18 2011 +0100 +++ b/etc/init.d/rc.shutdown Thu Feb 24 18:49:47 2011 +0100 @@ -5,57 +5,34 @@ . /etc/init.d/rc.functions . /etc/rcS.conf -clear && sleep 1 +# Bold info message with uptime +clear && echo -e "\n -# Bold info message with uptime -echo "" -echo -e " -================================================================================ + \033[1mSystem is going down for reboot or halt.\033[0m - \033[1mSystem is going down for reboot or halt.\033[0m - - Uptime:`uptime` - -================================================================================" -echo "" + Uptime:`uptime`\n" # Store last alsa settings. if [ -x /usr/sbin/alsactl ]; then - echo -n "Storing alsa sound settings..." alsactl store - status fi # Stop all daemons started at boot time. -echo "Stopping all daemons started at boot time..." for daemon in $RUN_DAEMONS do if [ -x /etc/init.d/$daemon ]; then - /etc/init.d/$daemon stop + /etc/init.d/$daemon stop > /dev/null fi done # Sync all filesystems. -echo -n "Syncing all filesystems... " sync -status && sleep 1 # Swap off. -echo -n "Disabling swap space... " /sbin/swapoff -a -status # Kill all processes. -echo "Killing all processes..." killall5 # Umount filesystems. -echo -n "Remounting rootfs read only..." -mount -o remount,ro / -status -echo "Unmounting all filesystems... " -/bin/umount -a -r - -echo "" -usleep_progress -echo "" +/bin/umount -a -r 2>/dev/null