Accepting request 76045 from multimedia:libs

- Add missing Required-Stop in alsasound init script

- Add $local_fs to alsasound init script (for /var/* access)
  (bnc#700781)

- Call alsactl in alsasound init script when /var is a separate
  partition (bnc#700781)

OBS-URL: https://build.opensuse.org/request/show/76045
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/alsa?expand=0&rev=107
This commit is contained in:
Marcus Rückert 2011-07-11 13:58:11 +00:00 committed by Git OBS Bridge
commit b81de85eb7
2 changed files with 26 additions and 2 deletions

View File

@ -1,3 +1,20 @@
-------------------------------------------------------------------
Mon Jul 11 10:57:25 CEST 2011 - tiwai@suse.de
- Add missing Required-Stop in alsasound init script
-------------------------------------------------------------------
Fri Jul 8 12:00:35 CEST 2011 - tiwai@suse.de
- Add $local_fs to alsasound init script (for /var/* access)
(bnc#700781)
-------------------------------------------------------------------
Tue Jul 5 14:54:36 CEST 2011 - tiwai@suse.de
- Call alsactl in alsasound init script when /var is a separate
partition (bnc#700781)
-------------------------------------------------------------------
Fri Jun 3 14:10:02 CEST 2011 - tiwai@suse.de

View File

@ -32,9 +32,9 @@
#
### BEGIN INIT INFO
# Provides: alsasound
# Required-Start:
# Required-Start: $local_fs
# Should-Start: $remote_fs resmgr
# Required-Stop:
# Required-Stop: $local_fs
# Should-Stop: $remote_fs resmgr
# Default-Start: 2 3 5
# Default-Stop:
@ -189,6 +189,13 @@ stop_all() {
case "$1" in
start)
if test "$PREVLEVEL" = "N" -a -d /proc/asound ; then
# re-run alsactl when /var is a seprate partition (bnc#700781)
case $asoundcfg in
/var/*)
grep -q " /var " /proc/mounts && \
$alsactl -F -f $asoundcfg restore >/dev/null 2>&1
;;
esac
start_rest
else
start_all