diff options
author | Luiz Souza <luiz@netgate.com> | 2017-09-14 22:04:40 -0500 |
---|---|---|
committer | Luiz Souza <luiz@netgate.com> | 2017-09-14 22:06:01 -0500 |
commit | 4ff3adec7a6bdd6d87cc5eeae2b1039954ee5ce2 (patch) | |
tree | 06b054ee8c0a44edd56271bc75c57aeada8ae634 /src/usr/local/bin/beep.sh | |
parent | 59104a6ff6c862482eddb9696fd8d22dec89052e (diff) | |
download | pfsense-4ff3adec7a6bdd6d87cc5eeae2b1039954ee5ce2.zip pfsense-4ff3adec7a6bdd6d87cc5eeae2b1039954ee5ce2.tar.gz |
If /boot/loader.conf is not presetn check /boot/loader.conf.local.
Diffstat (limited to 'src/usr/local/bin/beep.sh')
-rwxr-xr-x | src/usr/local/bin/beep.sh | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/usr/local/bin/beep.sh b/src/usr/local/bin/beep.sh index 0a37d2f..fba8219 100755 --- a/src/usr/local/bin/beep.sh +++ b/src/usr/local/bin/beep.sh @@ -35,11 +35,9 @@ if [ -f /var/log/dmesg.boot ]; then fi # Check for different HZ -if [ -f /boot/loader.conf ]; then - HZ=`/usr/bin/grep -c kern.hz /boot/loader.conf` - if [ "$HZ" = "1" ]; then - NOTELENGTH="10" - fi +HZ=`/sbin/sysctl -n kern.hz` +if [ "$HZ" = "1" ]; then + NOTELENGTH="10" fi if [ -c "/dev/speaker" ]; then |