diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-12-27 03:38:50 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-12-27 03:38:50 +0000 |
commit | 15fb334387c48236f4c1b41ad91eb9e632bd923e (patch) | |
tree | 9c5dc30e005965a53fbaf572ffa70b16234d51b8 /usr | |
parent | 28c565d43c642bb88bbeecfc61bd50407645f9d8 (diff) | |
download | pfsense-15fb334387c48236f4c1b41ad91eb9e632bd923e.zip pfsense-15fb334387c48236f4c1b41ad91eb9e632bd923e.tar.gz |
Detect vmware and embedded platforms and lower the note duration
automatically.
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/bin/beep.sh | 8 |
1 files changed, 4 insertions, 4 deletions
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 |