From 7c4b735313fe62162225388fa36fab946ba916b0 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Fri, 17 Sep 1999 15:30:46 +0000 Subject: load/save mixer settings here. --- rc.d/init.d/halt | 6 ++++++ rc.d/rc.sysinit | 4 ++++ 2 files changed, 10 insertions(+) (limited to 'rc.d') 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 diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit index 061b2309..df697ab4 100755 --- a/rc.d/rc.sysinit +++ b/rc.d/rc.sysinit @@ -266,6 +266,10 @@ if [ -n "$USEMODULES" ]; then if grep -s -q "^alias sound " /etc/conf.modules ; then action "Loading sound module" modprobe sound fi + # Get mixer settings + if [ $? -eq 0 -a -f /etc/.aumixrc ]; then + action "Loading mixer settings" /bin/aumix-minimal -f /etc/.aumixrc -L >/dev/null + fi if grep -s -q "^alias midi " /etc/conf.modules ; then action "Loading midi module" modprobe midi fi -- cgit v1.2.1