diff options
author | Renato Botelho <garga@FreeBSD.org> | 2013-01-17 09:31:51 -0200 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2013-01-17 09:31:51 -0200 |
commit | 0ff214f27d38d8f867b4665d9e61d080da03d6f4 (patch) | |
tree | 83a5c452a5e00b26a4ceedb82abbcc7ced79ce48 /etc/inc/pfsense-utils.inc | |
parent | 24879bc655b95b5c16de53990e5da23ae7e65570 (diff) | |
download | pfsense-0ff214f27d38d8f867b4665d9e61d080da03d6f4.zip pfsense-0ff214f27d38d8f867b4665d9e61d080da03d6f4.tar.gz |
Preserve "Idle timeout" parameter on interfaces gui. It fixes a problem pointed out on ticket #2641
Diffstat (limited to 'etc/inc/pfsense-utils.inc')
-rw-r--r-- | etc/inc/pfsense-utils.inc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index 36d04fe..d63dfd4 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -1043,6 +1043,18 @@ function setup_serial_port($when="save", $path="") { return; } +function read_loader_conf($path = "") { + $loader_conf_file = "{$path}/boot/loader.conf"; + $loader_conf = file_get_contents($loader_conf_file); + $result = array(); + + foreach (explode("\n", $loader_conf) as $line) { + } +} + +function write_loader_conf($loader_conf, $path = "") { +} + function print_value_list($list, $count = 10, $separator = ",") { $list = implode($separator, array_slice($list, 0, $count)); if(count($list) < $count) { |