summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-02-05 17:40:18 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-02-05 17:40:18 +0000
commit8dd629d06b6c6b630a86ece2136c52f30ebbb4af (patch)
treebc4badac48b594cc40c32f292ef4a960ff28d88b
parent73a98657367d76d419891ee4886cf08f2bfcff28 (diff)
downloadpfsense-8dd629d06b6c6b630a86ece2136c52f30ebbb4af.zip
pfsense-8dd629d06b6c6b630a86ece2136c52f30ebbb4af.tar.gz
Correctly deterimine if /boot/loader.conf exists.
-rwxr-xr-xusr/local/bin/beep.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/bin/beep.sh b/usr/local/bin/beep.sh
index efb06c9..8344ed1 100755
--- a/usr/local/bin/beep.sh
+++ b/usr/local/bin/beep.sh
@@ -9,7 +9,7 @@ if [ "$PFSENSETYPE" = "embedded" ]; then
fi
# Check for different HZ
-if [ /boot/loader.conf ]; then
+if [ -f /boot/loader.conf ]; then
HZ=`cat /boot/loader.conf | grep kern.hz | wc -l | awk '{ print $1 }'`
if [ "$HZ" = "1" ]; then
NOTELENGTH="10"
OpenPOWER on IntegriCloud