diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-02-05 17:40:18 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-02-05 17:40:18 +0000 |
commit | 8dd629d06b6c6b630a86ece2136c52f30ebbb4af (patch) | |
tree | bc4badac48b594cc40c32f292ef4a960ff28d88b | |
parent | 73a98657367d76d419891ee4886cf08f2bfcff28 (diff) | |
download | pfsense-8dd629d06b6c6b630a86ece2136c52f30ebbb4af.zip pfsense-8dd629d06b6c6b630a86ece2136c52f30ebbb4af.tar.gz |
Correctly deterimine if /boot/loader.conf exists.
-rwxr-xr-x | usr/local/bin/beep.sh | 2 |
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" |