aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>1999-09-17 15:30:46 +0000
committerBill Nottingham <notting@redhat.com>1999-09-17 15:30:46 +0000
commit7c4b735313fe62162225388fa36fab946ba916b0 (patch)
tree9ba35766a38e3bc37b9603a2f3d6d99ce674e36b /rc.d/init.d
parentcfea400d279c9d23802c37298ddcdb536d48df0a (diff)
downloadinitscripts-7c4b735313fe62162225388fa36fab946ba916b0.tar
initscripts-7c4b735313fe62162225388fa36fab946ba916b0.tar.gz
initscripts-7c4b735313fe62162225388fa36fab946ba916b0.tar.bz2
initscripts-7c4b735313fe62162225388fa36fab946ba916b0.tar.xz
initscripts-7c4b735313fe62162225388fa36fab946ba916b0.zip
load/save mixer settings here.
Diffstat (limited to 'rc.d/init.d')
-rwxr-xr-xrc.d/init.d/halt6
1 files changed, 6 insertions, 0 deletions
diff --git a/rc.d/init.d/halt b/rc.d/init.d/halt
index 9a368cbf..7377385e 100755
--- a/rc.d/init.d/halt
+++ b/rc.d/init.d/halt
@@ -50,6 +50,12 @@ runcmd "Sending all processes the KILL signal.." /sbin/killall5 -9
# Write to wtmp file before unmounting /var
halt -w
+# Save mixer settings, here for lack of a better place.
+grep -q "\(sparcaudio\|sound\)" /proc/devices
+if [ $? = 0 ]; then
+ runcmd "Saving mixer settings" /bin/aumix-minimal -f /etc/.aumixrc -S
+fi
+
# Turn off swap, then unmount file systems.
runcmd "Turning off swap and accounting" swapoff -a
# Turn off other swap that isn't in /etc/fstab