# HG changeset patch # User Christophe Lincoln # Date 1236467626 -3600 # Node ID 7d89350f47ed5c45fa016cac5321c07e6991a75e # Parent 56e723fa88e4aca57dac56a46ae883e086119fbf Store last alsa settings on shutdown diff -r 56e723fa88e4 -r 7d89350f47ed etc/init.d/rc.shutdown --- a/etc/init.d/rc.shutdown Sun Mar 08 00:13:04 2009 +0100 +++ b/etc/init.d/rc.shutdown Sun Mar 08 00:13:46 2009 +0100 @@ -19,6 +19,13 @@ ================================================================================" echo "" +# 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 "Stoping all demons started at boot time..." for daemon in $RUN_DAEMONS @@ -31,7 +38,7 @@ # Sync all filesystems. echo -n "Syncing all filesystems... " sync -status && sleep 2 +status && sleep 1 # Swap off. echo -n "Disabling swap space... " @@ -40,8 +47,7 @@ # Kill all processes. echo -n "Killing all processes..." -killall5 && sleep 2 -status +killall5 # Umount filesystems. echo -n "Remonting rootfs read only..."