View | Details | Raw Unified | Return to bug 21722
Collapse All | Expand All

(-)/etc/rc (+13 lines)
Lines 276-281 Link Here
276
	;;
276
	;;
277
esac
277
esac
278
278
279
#
280
# If we have saved mixer state and the user wants it restored, do it.
281
#
282
case ${mixer_devices} in
283
[Nn][Oo] | '')
284
	;;
285
*)
286
	for settings in /var/db/mixer*.settings; do
287
		mixer -f `echo $settings | sed -e 's/.settings//' -e 's;/var/db;/dev;'` `cat $settings` >/dev/null
288
	done
289
	;;
290
esac
291
		
279
# Remove X lock files, since they will prevent you from restarting X11
292
# Remove X lock files, since they will prevent you from restarting X11
280
# after a system crash.
293
# after a system crash.
281
#
294
#
(-)/etc/rc.shutdown (+19 lines)
Lines 43-48 Link Here
43
	;;
43
	;;
44
esac
44
esac
45
45
46
# Save the mixer settings - if the user wants it.
47
#
48
case ${mixer_devices} in
49
[Nn][Oo] | '')
50
	;;
51
[Yy][Ee][Ss])
52
	echo "Saving mixer settings."
53
	rm /var/db/mixer*.settings
54
	/usr/sbin/mixer -s > /var/db/mixer.settings
55
	;;
56
*)
57
	echo "Saving mixer settings."
58
	rm /var/db/mixer*.settings
59
	for dev in ${mixer_devices}; do
60
		/usr/sbin/mixer -f /dev/mixer${dev} -s > /var/db/mixer${dev}.settings
61
	done
62
	;;
63
esac
64
46
# Check if /var/db/mounttab is clean.
65
# Check if /var/db/mounttab is clean.
47
case $1 in
66
case $1 in
48
reboot)
67
reboot)
(-)/etc/defaults/rc.conf (+1 lines)
Lines 298-303 Link Here
298
start_vinum=""		# set to YES to start vinum
298
start_vinum=""		# set to YES to start vinum
299
entropy_file="/var/db/entropy"
299
entropy_file="/var/db/entropy"
300
			# Set to NO to disable caching entropy through reboots
300
			# Set to NO to disable caching entropy through reboots
301
mixer_devices="NO"	# NO to disable saving, YES for /dev/mixer, or list of mixer numbers
301
302
302
##############################################################
303
##############################################################
303
### Define source_rc_confs, the mechanism used by /etc/rc.* ##
304
### Define source_rc_confs, the mechanism used by /etc/rc.* ##

Return to bug 21722