summaryrefslogtreecommitdiffstats
path: root/usr/local/bin/beep.sh
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local/bin/beep.sh')
-rwxr-xr-xusr/local/bin/beep.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/usr/local/bin/beep.sh b/usr/local/bin/beep.sh
index 99962af..efb06c9 100755
--- a/usr/local/bin/beep.sh
+++ b/usr/local/bin/beep.sh
@@ -9,9 +9,11 @@ if [ "$PFSENSETYPE" = "embedded" ]; then
fi
# Check for different HZ
-HZ=`cat /boot/loader.conf | grep kern.hz | wc -l | awk '{ print $1 }'`
-if [ "$HZ" = "1" ]; then
- NOTELENGTH="10"
+if [ /boot/loader.conf ]; then
+ HZ=`cat /boot/loader.conf | grep kern.hz | wc -l | awk '{ print $1 }'`
+ if [ "$HZ" = "1" ]; then
+ NOTELENGTH="10"
+ fi
fi
if [ -c "/dev/speaker" ]; then
OpenPOWER on IntegriCloud