From f0504457e81e796f0deea7466fc5f01db11c17a4 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Wed, 16 Jan 2008 01:22:54 +0000 Subject: Only process /boot/loader.conf if it exists avoiding a somehwhat ugly looking error on cdrom boot. --- usr/local/bin/beep.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'usr/local/bin') 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 -- cgit v1.1