summaryrefslogtreecommitdiffstats
path: root/usr/local/bin
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2008-07-20 19:16:51 +0000
committerChris Buechler <cmb@pfsense.org>2008-07-20 19:16:51 +0000
commit59f5a0eef108f540968500f599873e8db7f2ea12 (patch)
treeeb4f7a068081539ceec1856f7faba3c9a31c0e77 /usr/local/bin
parenta4b186ffe3ae30b8d83050bfae86d445618bb495 (diff)
downloadpfsense-59f5a0eef108f540968500f599873e8db7f2ea12.zip
pfsense-59f5a0eef108f540968500f599873e8db7f2ea12.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