To check if mixer settings can be loaded/saved, /proc/devices is grepped
for a sound entry, but this is done inconsistently in different init
In /etc/rc.d/rc.sysinit, where the settings are loaded, it says at line
grep -q "14 sound" /proc/devices 2>/dev/null
And in /etc/rc.d/init.d/halt, where the settings are saved, it says at line
grep -q "\(sparcaudio\|sound\)" /proc/devices
As the second method seems more portable (if sparcaudio is really used?
can't check since I have no sparc), I think it would be the best to also
use this for the first case.
Maybe it's better to move this "detection" to /etc/rc.d/init.d/functions,
ie something like:
return grep -q "\(sparcaudio\|sound\)" /proc/devices 2>/dev/null
which could then be used consistently in all init scripts.
fixed in initscripts-4.70-1. Thanks for noticing.