Warning!

Notice: the grml team is migrating from Mercurial to Git.
Please visit git.grml.org instead!

config_mixer: check for /proc/asound/cards
authorMichael Prokop <mika@grml.org>
Wed Jul 11 19:41:39 2007 +0200 (17 months ago)
changeset 135ca4aca241f23
manifestca4aca241f23
parent 1349ecc36a42d4c
child 1369630016a6e12
tag0.7.7
config_mixer: check for /proc/asound/cards
autoconfig.functions
debian/changelog
--- a/autoconfig.functions Wed Jul 11 19:37:16 2007 +0200
+++ b/autoconfig.functions Wed Jul 11 19:41:39 2007 +0200
@@ -700,7 +700,7 @@ if checkbootparam "blacklist" ; then
echo "alias $BLACK off" >> /etc/modprobe.d/grml
echo "# end entry generated by config_blacklist of grml-autoconfig" >> /etc/modprobe.d/grml ; eend $?
else
- eerror "No given module for blacklist found. Blacklisting will not work therefor."
+ eerror "No given module for blacklist found. Blacklisting will not work therefore."
fi
else
ewarn "Backlisting via bootoption does not work on harddisk installations." ; eend 1
@@ -1466,6 +1466,11 @@ if ! [ -x /usr/bin/aumix ] ; then
eerror "aumix binary not available. Can not set sound volumes therefore." ; eend 1
else
+ if ! [ -r /proc/asound/cards ] ; then
+ ewarn "No soundcard present, skipping mixer settings therefore." ; eend 0
+ return
+ fi
+
if checkbootparam vol ; then
VOL="$(getbootparam 'vol' 2>>$DEBUG)"
if [ -z "$VOL" ] ; then
--- a/debian/changelog Wed Jul 11 19:37:16 2007 +0200
+++ b/debian/changelog Wed Jul 11 19:41:39 2007 +0200
@@ -1,3 +1,11 @@ grml-autoconfig (0.7.6) unstable; urgenc
+grml-autoconfig (0.7.7) unstable; urgency=low
+
+ * config_mixer: check for /proc/asound/cards before trying to
+ execute mixer binaries
+ * fix typo: it's therefore and not therefor
+
+ -- Michael Prokop <mika@grml.org> Wed, 11 Jul 2007 19:41:04 +0200
+
grml-autoconfig (0.7.6) unstable; urgency=low
* config_lvm(): check for 'No volume groups found' as lvdisplay does