summaryrefslogtreecommitdiffstats
path: root/usr/local/bin/beep.sh
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2010-11-29 18:31:16 -0500
committerjim-p <jimp@pfsense.org>2010-11-29 18:31:29 -0500
commitac617a8ffac35d5a5061d3392d418114a70a0684 (patch)
tree134bfa149033bdb380ddae34a001e979faa2c520 /usr/local/bin/beep.sh
parent9ae11a629d6693e0a66059a30fedb3534fcca721 (diff)
downloadpfsense-ac617a8ffac35d5a5061d3392d418114a70a0684.zip
pfsense-ac617a8ffac35d5a5061d3392d418114a70a0684.tar.gz
Eliminate a cat-to-grep
Diffstat (limited to 'usr/local/bin/beep.sh')
-rwxr-xr-xusr/local/bin/beep.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/bin/beep.sh b/usr/local/bin/beep.sh
index ca39a07..43f893a 100755
--- a/usr/local/bin/beep.sh
+++ b/usr/local/bin/beep.sh
@@ -16,7 +16,7 @@ fi
# Check for different HZ
if [ -f /boot/loader.conf ]; then
- HZ=`cat /boot/loader.conf | grep kern.hz | wc -l | awk '{ print $1 }'`
+ HZ=`grep kern.hz /boot/loader.conf | wc -l | awk '{ print $1 }'`
if [ "$HZ" = "1" ]; then
NOTELENGTH="10"
fi
OpenPOWER on IntegriCloud