summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-01-16 01:22:54 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-01-16 01:22:54 +0000
commitf0504457e81e796f0deea7466fc5f01db11c17a4 (patch)
treed321e0d599a1652c78dd275d89f9501a7645e665 /usr/local
parent87b5deb10f83557c724b1be0a0985bdee896e5db (diff)
downloadpfsense-f0504457e81e796f0deea7466fc5f01db11c17a4.zip
pfsense-f0504457e81e796f0deea7466fc5f01db11c17a4.tar.gz
Only process /boot/loader.conf if it exists avoiding a
somehwhat ugly looking error on cdrom boot.
Diffstat (limited to 'usr/local')
-rwxr-xr-xusr/local/bin/beep.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/usr/local/bin/beep.sh b/usr/local/bin/beep.sh
index 99962af..efb06c9 100755
--- a/usr/local/bin/beep.sh
+++ b/usr/local/bin/beep.sh
@@ -9,9 +9,11 @@ if [ "$PFSENSETYPE" = "embedded" ]; then
fi
# Check for different HZ
-HZ=`cat /boot/loader.conf | grep kern.hz | wc -l | awk '{ print $1 }'`
-if [ "$HZ" = "1" ]; then
- NOTELENGTH="10"
+if [ /boot/loader.conf ]; then
+ HZ=`cat /boot/loader.conf | grep kern.hz | wc -l | awk '{ print $1 }'`
+ if [ "$HZ" = "1" ]; then
+ NOTELENGTH="10"
+ fi
fi
if [ -c "/dev/speaker" ]; then
OpenPOWER on IntegriCloud