sound-scripts 20070530:0.51-alt1 The attached patch makes the script better; this way it is more correct (e.g., in case of special chars in the pathname) and hence works more predictable in strange situations. (I stumbled upon this problem when trying to "source" the script from another bash.) imz at altlinux.org --- /usr/share/hal/scripts/linux/hal-system-alsa-mixer-linux.~1.1~ 2008-08-18 11:30:57 +0400 +++ /usr/share/hal/scripts/linux/hal-system-alsa-mixer-linux 2008-07-05 11:15:13 +0400 @@ -56,7 +57,7 @@ return $ret } -case $(basename "$0") in +case "$(basename -- "$0")" in hal-system-alsa-mixer-restore-linux) [ -f "$STATEPATH/$HAL_PROP_ALSA_CARD.state" ] || set_mixer_default restore_mixer || set_mixer_default