https://bugzilla.novell.com/show_bug.cgi?id=814625
https://bugzilla.novell.com/show_bug.cgi?id=814625#c7
--- Comment #7 from Takashi Iwai
the alsasound init script and the stor/restore mechanism seems to have a number of logic problems.
Some of them:
1) start/stop behaves differently whether or not $RUNLEVEL or $PREVLEVEL are set to some values. I don't see a reason for this distinction, the opposite should be right
The init script can be called outside init, e.g. via rcalsasound. In this case, there is no runlevel change.
2) in "start" there is a distinction how /var is mounted: grep -q " /var " /proc/mounts ... I think this is not a good way to go. Also, what is the reason for this? When the alsa init scipt runs, /var/ needs to be availbale
Well, this was the change due to systemd introduction. We can't distinguish /var partition well nowadays, unfortunately.
3) if in "start" the following: 'if test "$PREVLEVEL" = "N" -a -d /proc/asound ; then' is strange. If we have no alsa module loaded (/proc/asound not there) then we run into the "else" tree and *only* load the module but do not restore the volume levels.
The volume is restored by udev when the module is loaded, thus you don't have to do it again in alsasound init script. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.