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, 4 insertions, 4 deletions
diff --git a/usr/local/bin/beep.sh b/usr/local/bin/beep.sh
index 7b58dce..99962af 100755
--- a/usr/local/bin/beep.sh
+++ b/usr/local/bin/beep.sh
@@ -1,17 +1,17 @@
#!/bin/sh
# Standard note length
-NOTELENGTH="200"
+NOTELENGTH="25"
# Embedded uses 100HZ
if [ "$PFSENSETYPE" = "embedded" ]; then
- NOTELENGTH="50"
+ NOTELENGTH="10"
fi
# Check for different HZ
-HZ=`cat /boot/loader.conf | grep kern.hz | wc`
+HZ=`cat /boot/loader.conf | grep kern.hz | wc -l | awk '{ print $1 }'`
if [ "$HZ" = "1" ]; then
- NOTELENGTH="50"
+ NOTELENGTH="10"
fi
if [ -c "/dev/speaker" ]; then
OpenPOWER on IntegriCloud