diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-01-16 01:23:00 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-01-16 01:23:00 +0000 |
commit | 9d8a09fad238e87752e7ec16cd2c3e681d9fbfc9 (patch) | |
tree | 0093b4afc51b7b99c40aaadf4fc3d2e72f8bb3d5 | |
parent | 0282154320d19fb20985c006a2ba42b75f9e894c (diff) | |
download | pfsense-9d8a09fad238e87752e7ec16cd2c3e681d9fbfc9.zip pfsense-9d8a09fad238e87752e7ec16cd2c3e681d9fbfc9.tar.gz |
Only process /boot/loader.conf if it exists avoiding a
somehwhat ugly looking error on cdrom boot.
-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 |