summaryrefslogtreecommitdiffstats
path: root/usr/local/bin
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2008-07-20 19:15:49 +0000
committerChris Buechler <cmb@pfsense.org>2008-07-20 19:15:49 +0000
commit6f895eca44608b3fef93f9fe4769d46d9bc328da (patch)
treeb79461ac3f0b7cdc3bef47204417486ecf9f4641 /usr/local/bin
parent9bfdc8eecd3ab62e571fb40db7426bf2a995ef3e (diff)
downloadpfsense-6f895eca44608b3fef93f9fe4769d46d9bc328da.zip
pfsense-6f895eca44608b3fef93f9fe4769d46d9bc328da.tar.gz
this is super annoying in VMware, exit if running in VMware
Diffstat (limited to 'usr/local/bin')
-rwxr-xr-xusr/local/bin/beep.sh6
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 }'`
OpenPOWER on IntegriCloud