diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-01-16 01:22:54 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-01-16 01:22:54 +0000 |
commit | f0504457e81e796f0deea7466fc5f01db11c17a4 (patch) | |
tree | d321e0d599a1652c78dd275d89f9501a7645e665 /usr/local | |
parent | 87b5deb10f83557c724b1be0a0985bdee896e5db (diff) | |
download | pfsense-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-x | usr/local/bin/beep.sh | 8 |
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 |