diff options
Diffstat (limited to 'media-sound/alsa-utils/files/alsasound-init-20070218')
-rw-r--r-- | media-sound/alsa-utils/files/alsasound-init-20070218 | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/media-sound/alsa-utils/files/alsasound-init-20070218 b/media-sound/alsa-utils/files/alsasound-init-20070218 index 9be55cb1c556..4e858affe6a1 100644 --- a/media-sound/alsa-utils/files/alsasound-init-20070218 +++ b/media-sound/alsa-utils/files/alsasound-init-20070218 @@ -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 |