diff options
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/bin/beep.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/bin/beep.sh b/usr/local/bin/beep.sh index 43f893a..febb222 100755 --- a/usr/local/bin/beep.sh +++ b/usr/local/bin/beep.sh @@ -9,14 +9,14 @@ if [ "$PFSENSETYPE" = "embedded" ]; then fi # this is super annoying in VMware, exit if in VMware -VMWCOUNT=`dmesg -a | grep VMware | wc -l | awk '{ print $1 }'` +VMWCOUNT=`/usr/bin/grep -c VMware /var/log/dmesg.boot` if [ $VMWCOUNT -gt 0 ]; then exit; fi # Check for different HZ if [ -f /boot/loader.conf ]; then - HZ=`grep kern.hz /boot/loader.conf | wc -l | awk '{ print $1 }'` + HZ=`/usr/bin/grep -c kern.hz /boot/loader.conf` if [ "$HZ" = "1" ]; then NOTELENGTH="10" fi |