summaryrefslogtreecommitdiffstats
path: root/etc/inc
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 /etc/inc
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 'etc/inc')
-rw-r--r--etc/inc/pfsense-utils.inc23
1 files changed, 0 insertions, 23 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc
index da39c39..b0a93a2 100644
--- a/etc/inc/pfsense-utils.inc
+++ b/etc/inc/pfsense-utils.inc
@@ -927,29 +927,6 @@ function auto_login() {
conf_mount_ro();
}
-function setup_beep() {
- global $config;
-
- if(isset($config['system']['disablebeep']))
- $status = false;
- else
- $status = true;
-
- $beep_file = "/etc/disable_beep";
-
- conf_mount_rw();
-
- if($status == false) {
- touch($beep_file);
- } else {
- if (file_exists($beep_file)) {
- unlink($beep_file);
- }
- }
-
- conf_mount_ro();
-}
-
function setup_serial_port($when="save", $path="") {
global $g, $config;
conf_mount_rw();
OpenPOWER on IntegriCloud