diff options
author | jim-p <jimp@pfsense.org> | 2010-11-29 18:31:16 -0500 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2010-11-29 18:31:29 -0500 |
commit | ac617a8ffac35d5a5061d3392d418114a70a0684 (patch) | |
tree | 134bfa149033bdb380ddae34a001e979faa2c520 /usr | |
parent | 9ae11a629d6693e0a66059a30fedb3534fcca721 (diff) | |
download | pfsense-ac617a8ffac35d5a5061d3392d418114a70a0684.zip pfsense-ac617a8ffac35d5a5061d3392d418114a70a0684.tar.gz |
Eliminate a cat-to-grep
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/bin/beep.sh | 2 |
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 |