Fix init script thanks to Jakub Moc in bug #167436.
authorDiego Elio Pettenò <flameeyes@gentoo.org>
Sun, 18 Feb 2007 11:38:29 +0000 (11:38 +0000)
committerDiego Elio Pettenò <flameeyes@gentoo.org>
Sun, 18 Feb 2007 11:38:29 +0000 (11:38 +0000)
Package-Manager: portage-2.1.2-r9

media-sound/alsa-utils/ChangeLog
media-sound/alsa-utils/files/alsasound-init-20070218

index 57aa8c3a5c8321afa4f60fa16ab910b6333a18c3..4c0bc7deb2612874fe4a7368d13b4a856583956a 100644 (file)
@@ -1,6 +1,10 @@
 # ChangeLog for media-sound/alsa-utils
 # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-utils/ChangeLog,v 1.194 2007/02/18 02:20:41 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-utils/ChangeLog,v 1.195 2007/02/18 11:38:29 flameeyes Exp $
+
+  18 Feb 2007; Diego Pettenò <flameeyes@gentoo.org>
+  files/alsasound-init-20070218:
+  Fix init script thanks to Jakub Moc in bug #167436.
 
   18 Feb 2007; Diego Pettenò <flameeyes@gentoo.org>
   alsa-utils-1.0.14_rc2-r1.ebuild:
index 9be55cb1c55692ec74de33958702e90f0f3fbe25..4e858affe6a13b15190d967a85fd1334f659bd1b 100644 (file)
@@ -1,5 +1,5 @@
 #!/sbin/runscript
-# $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-utils/files/alsasound-init-20070218,v 1.1 2007/02/18 02:00:16 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-utils/files/alsasound-init-20070218,v 1.2 2007/02/18 11:38:29 flameeyes Exp $
 #
 # Gentoo users: add this script to 'boot' run level.
 # ==================================================
@@ -188,7 +188,8 @@ restore() {
        push_opts=$(shopt -p nullglob); shopt -s nullglob
        for ossfile in "${alsastatedir}"/oss/card?_pcm??; do
                # We use cat because I'm not sure if cp works properly on /proc
-               cat "${ossfile}" > /proc/asound/${ossfile/_/\/}/oss
+               local procfile=${ossfile##${alsastatedir}/oss}
+               cat "${ossfile}" > /proc/asound/${procfile/_/\/}/oss
        done
        eval $push_opts