summaryrefslogtreecommitdiffstats
path: root/usr/local/bin
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-12-27 03:30:18 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-12-27 03:30:18 +0000
commit28c565d43c642bb88bbeecfc61bd50407645f9d8 (patch)
tree11e4c2526bbd4c3bd458741f2a87055e1e907e72 /usr/local/bin
parent9eeef9222b74699ff155e2acf5499749c6cd8580 (diff)
downloadpfsense-28c565d43c642bb88bbeecfc61bd50407645f9d8.zip
pfsense-28c565d43c642bb88bbeecfc61bd50407645f9d8.tar.gz
Correct script checks.
Diffstat (limited to 'usr/local/bin')
-rwxr-xr-xusr/local/bin/beep.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/local/bin/beep.sh b/usr/local/bin/beep.sh
index f9f8eeb..7b58dce 100755
--- a/usr/local/bin/beep.sh
+++ b/usr/local/bin/beep.sh
@@ -4,13 +4,13 @@
NOTELENGTH="200"
# Embedded uses 100HZ
-if [ $PFSENSETYPE = "embedded" ]; then
+if [ "$PFSENSETYPE" = "embedded" ]; then
NOTELENGTH="50"
fi
# Check for different HZ
HZ=`cat /boot/loader.conf | grep kern.hz | wc`
-if [ "$HZ" -gt 0 ]; then
+if [ "$HZ" = "1" ]; then
NOTELENGTH="50"
fi
@@ -29,4 +29,4 @@ if [ -c "/dev/speaker" ]; then
/usr/local/bin/beep -p 400 $NOTELENGTH
/usr/local/bin/beep -p 400 $NOTELENGTH
fi
-fi \ No newline at end of file
+fi \ No newline at end of file
OpenPOWER on IntegriCloud