Only process /boot/loader.conf if it exists avoiding a

somehwhat ugly looking error on cdrom boot.
This commit is contained in:
Scott Ullrich 2008-01-16 01:23:00 +00:00
parent 0282154320
commit 9d8a09fad2

View File

@ -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