summaryrefslogtreecommitdiffstats
path: root/usr/local/bin/beep.sh
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local/bin/beep.sh')
-rwxr-xr-xusr/local/bin/beep.sh10
1 files changed, 4 insertions, 6 deletions
diff --git a/usr/local/bin/beep.sh b/usr/local/bin/beep.sh
index 6f4e477..febb222 100755
--- a/usr/local/bin/beep.sh
+++ b/usr/local/bin/beep.sh
@@ -9,11 +9,9 @@ if [ "$PFSENSETYPE" = "embedded" ]; then
fi
# this is super annoying in VMware, exit if in VMware
-if [ -f /var/log/dmesg.boot ]; then
- VMWCOUNT=`/usr/bin/grep -c VMware /var/log/dmesg.boot`
- if [ $VMWCOUNT -gt 0 ]; then
- exit;
- fi
+VMWCOUNT=`/usr/bin/grep -c VMware /var/log/dmesg.boot`
+if [ $VMWCOUNT -gt 0 ]; then
+ exit;
fi
# Check for different HZ
@@ -39,4 +37,4 @@ if [ -c "/dev/speaker" ]; then
/usr/local/bin/beep -p 400 $NOTELENGTH
/usr/local/bin/beep -p 400 $NOTELENGTH
fi
-fi
+fi \ No newline at end of file
OpenPOWER on IntegriCloud