diff options
author | Chris Buechler <cmb@pfsense.org> | 2008-07-20 19:15:49 +0000 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2008-07-20 19:15:49 +0000 |
commit | 6f895eca44608b3fef93f9fe4769d46d9bc328da (patch) | |
tree | b79461ac3f0b7cdc3bef47204417486ecf9f4641 /usr/local/bin/beep.sh | |
parent | 9bfdc8eecd3ab62e571fb40db7426bf2a995ef3e (diff) | |
download | pfsense-6f895eca44608b3fef93f9fe4769d46d9bc328da.zip pfsense-6f895eca44608b3fef93f9fe4769d46d9bc328da.tar.gz |
this is super annoying in VMware, exit if running in VMware
Diffstat (limited to 'usr/local/bin/beep.sh')
-rwxr-xr-x | usr/local/bin/beep.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/usr/local/bin/beep.sh b/usr/local/bin/beep.sh index 8344ed1..ca39a07 100755 --- a/usr/local/bin/beep.sh +++ b/usr/local/bin/beep.sh @@ -8,6 +8,12 @@ if [ "$PFSENSETYPE" = "embedded" ]; then NOTELENGTH="10" fi +# this is super annoying in VMware, exit if in VMware +VMWCOUNT=`dmesg -a | grep VMware | wc -l | awk '{ print $1 }'` +if [ $VMWCOUNT -gt 0 ]; then + exit; +fi + # Check for different HZ if [ -f /boot/loader.conf ]; then HZ=`cat /boot/loader.conf | grep kern.hz | wc -l | awk '{ print $1 }'` |