summaryrefslogtreecommitdiffstats
path: root/usr/local/bin
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-02-05 17:40:10 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-02-05 17:40:10 +0000
commitf5af050199d5b35a0bcfff7a93d3fddd73d2f33f (patch)
treea6c7fe6035a01bf197dd28468fc541a31ffebb40 /usr/local/bin
parentc9c9ad4a8d2847537c7ef7b376b94fdcbab84e1f (diff)
downloadpfsense-f5af050199d5b35a0bcfff7a93d3fddd73d2f33f.zip
pfsense-f5af050199d5b35a0bcfff7a93d3fddd73d2f33f.tar.gz
Correctly deterimine if /boot/loader.conf exists.
Diffstat (limited to 'usr/local/bin')
-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