FreeBSD Bugzilla – Attachment 10918 Details for
Bug 21722
The mixer settings are lost on sysetm reboot.s
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.53 KB, created by
mwm
on 2000-10-03 09:30:00 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
mwm
Created:
2000-10-03 09:30:00 UTC
Size:
1.53 KB
patch
obsolete
>--- rc Tue Oct 3 03:14:55 2000 >+++ /etc/rc Tue Oct 3 03:10:50 2000 >@@ -276,6 +276,19 @@ > ;; > esac > >+# >+# If we have saved mixer state and the user wants it restored, do it. >+# >+case ${mixer_devices} in >+[Nn][Oo] | '') >+ ;; >+*) >+ for settings in /var/db/mixer*.settings; do >+ mixer -f `echo $settings | sed -e 's/.settings//' -e 's;/var/db;/dev;'` `cat $settings` >/dev/null >+ done >+ ;; >+esac >+ > # Remove X lock files, since they will prevent you from restarting X11 > # after a system crash. > # >--- rc.shutdown Tue Oct 3 03:14:55 2000 >+++ /etc/rc.shutdown Tue Oct 3 03:09:30 2000 >@@ -43,6 +43,25 @@ > ;; > esac > >+# Save the mixer settings - if the user wants it. >+# >+case ${mixer_devices} in >+[Nn][Oo] | '') >+ ;; >+[Yy][Ee][Ss]) >+ echo "Saving mixer settings." >+ rm /var/db/mixer*.settings >+ /usr/sbin/mixer -s > /var/db/mixer.settings >+ ;; >+*) >+ echo "Saving mixer settings." >+ rm /var/db/mixer*.settings >+ for dev in ${mixer_devices}; do >+ /usr/sbin/mixer -f /dev/mixer${dev} -s > /var/db/mixer${dev}.settings >+ done >+ ;; >+esac >+ > # Check if /var/db/mounttab is clean. > case $1 in > reboot) >--- defaults/rc.conf Fri Sep 1 08:37:25 2000 >+++ /etc/defaults/rc.conf Tue Oct 3 02:31:22 2000 >@@ -298,6 +298,7 @@ > start_vinum="" # set to YES to start vinum > entropy_file="/var/db/entropy" > # Set to NO to disable caching entropy through reboots >+mixer_devices="NO" # NO to disable saving, YES for /dev/mixer, or list of mixer numbers > > ############################################################## > ### Define source_rc_confs, the mechanism used by /etc/rc.* ##
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 21722
: 10918