summaryrefslogtreecommitdiffstats
path: root/usr/local/bin
diff options
context:
space:
mode:
authorWarren Baker <warren@decoy.co.za>2012-02-23 10:35:03 +0200
committerWarren Baker <warren@decoy.co.za>2012-02-23 10:35:03 +0200
commit4b0e8c916b9dac14ee5131725ae503eb15369084 (patch)
tree7873b5d74d5195a0df701fa23fb9dab0decbb46c /usr/local/bin
parenta2263f0cd8b655922ea8a66b3b93a6062539ea99 (diff)
downloadpfsense-4b0e8c916b9dac14ee5131725ae503eb15369084.zip
pfsense-4b0e8c916b9dac14ee5131725ae503eb15369084.tar.gz
No need for extra function and touching of file, just set the value and use grep from XML to determine to beep or not
Diffstat (limited to 'usr/local/bin')
-rwxr-xr-xusr/local/bin/beep.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr/local/bin/beep.sh b/usr/local/bin/beep.sh
index eeefc55..0158244 100755
--- a/usr/local/bin/beep.sh
+++ b/usr/local/bin/beep.sh
@@ -1,6 +1,8 @@
#!/bin/sh
-if [ -f /etc/disable_beep ]; then
+
+BEEP=`/usr/bin/grep -c disablebeep /conf/config.xml`
+if [ $BEEP -gt 0 ]; then
exit;
fi
OpenPOWER on IntegriCloud