mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Only process /boot/loader.conf if it exists avoiding a
somehwhat ugly looking error on cdrom boot.
This commit is contained in:
parent
0282154320
commit
9d8a09fad2
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user