summaryrefslogtreecommitdiff
path: root/packages/altboot/files/altboot.rc/playbeep.sh
diff options
context:
space:
mode:
Diffstat (limited to 'packages/altboot/files/altboot.rc/playbeep.sh')
-rw-r--r--packages/altboot/files/altboot.rc/playbeep.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/altboot/files/altboot.rc/playbeep.sh b/packages/altboot/files/altboot.rc/playbeep.sh
index 198a87429f..6cc5b8bcdf 100644
--- a/packages/altboot/files/altboot.rc/playbeep.sh
+++ b/packages/altboot/files/altboot.rc/playbeep.sh
@@ -6,9 +6,9 @@
# Filename: playbeep.sh
# Date: 12-Apr-06
-if test -x /usr/sbin/alsactl
+if test -x /usr/sbin/alsactl -a -e /etc/modules
then
- for module in `cat /etc/modules | grep snd | grep -v ^#`
+ for module in `cat /etc/modules | grep snd | grep -v ^#`
do
#echo "loading $module"
modprobe $module
@@ -30,3 +30,5 @@ then
test -e /usr/share/sounds/beep.raw && cat /usr/share/sounds/beep.raw > /dev/dsp
fi
+
+/bin/true