diff options
author | Diego Elio Pettenò <flameeyes@gentoo.org> | 2007-02-18 11:38:29 +0000 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gentoo.org> | 2007-02-18 11:38:29 +0000 |
commit | e063a7c5312b703b493007229e1afe0b4e7218b7 (patch) | |
tree | b2888642eda154cbfeb740c298ed0f09338808c6 /media-sound/alsa-utils/files | |
parent | keyworded ~ppc (bug #163537) (diff) | |
download | gentoo-2-e063a7c5312b703b493007229e1afe0b4e7218b7.tar.gz gentoo-2-e063a7c5312b703b493007229e1afe0b4e7218b7.tar.bz2 gentoo-2-e063a7c5312b703b493007229e1afe0b4e7218b7.zip |
Fix init script thanks to Jakub Moc in bug #167436.
(Portage version: 2.1.2-r9)
Diffstat (limited to 'media-sound/alsa-utils/files')
-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 |