summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2007-02-18 14:00:58 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2007-02-18 14:00:58 +0000
commit62bbebc2c06972fe74d3b0d83dde3ab04067c8cf (patch)
tree9bfd3f5ea948ab67625c965dea518388daff1a2c /media-sound/alsa-utils/files
parentDon't allow broken icon themes patch from bug 167180, applied also by upstream. (diff)
downloadhistorical-62bbebc2c06972fe74d3b0d83dde3ab04067c8cf.tar.gz
historical-62bbebc2c06972fe74d3b0d83dde3ab04067c8cf.tar.bz2
historical-62bbebc2c06972fe74d3b0d83dde3ab04067c8cf.zip
Fail in case ALSA is not loaded at all (missing /proc/asound). Closes bug #102015.
Package-Manager: portage-2.1.2-r9
Diffstat (limited to 'media-sound/alsa-utils/files')
-rw-r--r--media-sound/alsa-utils/files/alsasound-init-200702188
1 files changed, 7 insertions, 1 deletions
diff --git a/media-sound/alsa-utils/files/alsasound-init-20070218 b/media-sound/alsa-utils/files/alsasound-init-20070218
index 4e858affe6a1..57be91eaa57b 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.2 2007/02/18 11:38:29 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-utils/files/alsasound-init-20070218,v 1.3 2007/02/18 14:00:58 flameeyes Exp $
#
# Gentoo users: add this script to 'boot' run level.
# ==================================================
@@ -230,6 +230,12 @@ start() {
fi
fi
+ if [[ ! -d /proc/asound ]]; then
+ eerror "ALSA failed to load."
+ eend 1
+ return 1
+ fi
+
[[ ${RESTORE_ON_START} == "yes" ]] && restore
}