From 28c565d43c642bb88bbeecfc61bd50407645f9d8 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Thu, 27 Dec 2007 03:30:18 +0000 Subject: Correct script checks. --- usr/local/bin/beep.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr/local') 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 -- cgit v1.1