From 15fb334387c48236f4c1b41ad91eb9e632bd923e Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Thu, 27 Dec 2007 03:38:50 +0000 Subject: Detect vmware and embedded platforms and lower the note duration automatically. --- usr/local/bin/beep.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'usr/local/bin') diff --git a/usr/local/bin/beep.sh b/usr/local/bin/beep.sh index 7b58dce..99962af 100755 --- a/usr/local/bin/beep.sh +++ b/usr/local/bin/beep.sh @@ -1,17 +1,17 @@ #!/bin/sh # Standard note length -NOTELENGTH="200" +NOTELENGTH="25" # Embedded uses 100HZ if [ "$PFSENSETYPE" = "embedded" ]; then - NOTELENGTH="50" + NOTELENGTH="10" fi # Check for different HZ -HZ=`cat /boot/loader.conf | grep kern.hz | wc` +HZ=`cat /boot/loader.conf | grep kern.hz | wc -l | awk '{ print $1 }'` if [ "$HZ" = "1" ]; then - NOTELENGTH="50" + NOTELENGTH="10" fi if [ -c "/dev/speaker" ]; then -- cgit v1.1