slitaz-boot-scripts rev 144

Store last alsa settings on shutdown
author Christophe Lincoln <pankso@slitaz.org>
date Sun Mar 08 00:13:46 2009 +0100 (2009-03-08)
parents 56e723fa88e4
children 4ae0810cb439
files etc/init.d/rc.shutdown
line diff
     1.1 --- a/etc/init.d/rc.shutdown	Sun Mar 08 00:13:04 2009 +0100
     1.2 +++ b/etc/init.d/rc.shutdown	Sun Mar 08 00:13:46 2009 +0100
     1.3 @@ -19,6 +19,13 @@
     1.4  ================================================================================"
     1.5  echo ""
     1.6  
     1.7 +# Store last alsa settings.
     1.8 +if [ -x /usr/sbin/alsactl ]; then
     1.9 +	echo -n "Storing alsa sound settings..."
    1.10 +	alsactl store
    1.11 +	status
    1.12 +fi
    1.13 +
    1.14  # Stop all daemons started at boot time.
    1.15  echo "Stoping all demons started at boot time..."
    1.16  for daemon in $RUN_DAEMONS
    1.17 @@ -31,7 +38,7 @@
    1.18  # Sync all filesystems.
    1.19  echo -n "Syncing all filesystems... "
    1.20  sync
    1.21 -status && sleep 2
    1.22 +status && sleep 1
    1.23  
    1.24  # Swap off.
    1.25  echo -n "Disabling swap space... "
    1.26 @@ -40,8 +47,7 @@
    1.27  
    1.28  # Kill all processes.
    1.29  echo -n "Killing all processes..."
    1.30 -killall5 && sleep 2
    1.31 -status
    1.32 +killall5
    1.33  
    1.34  # Umount filesystems.
    1.35  echo -n "Remonting rootfs read only..."