diff options
author | Daniel Stefan Haischt <dsh@pfsense.org> | 2006-08-31 22:18:15 +0000 |
---|---|---|
committer | Daniel Stefan Haischt <dsh@pfsense.org> | 2006-08-31 22:18:15 +0000 |
commit | c9edfb4a766940b852f5b3c4e9cec1c67b0af061 (patch) | |
tree | bd89670ed7e9fcd97d1c746f80b15acb4e6c7841 /packages/routed.inc | |
parent | 702ded07e0aa9e2b81f9f1b4038be933fec870bf (diff) | |
download | pfsense-packages-c9edfb4a766940b852f5b3c4e9cec1c67b0af061.tar.gz pfsense-packages-c9edfb4a766940b852f5b3c4e9cec1c67b0af061.tar.bz2 pfsense-packages-c9edfb4a766940b852f5b3c4e9cec1c67b0af061.zip |
- changed iface_array to interface_array
- added required to interface_array and ripversion
- added enablefields to field enable
Diffstat (limited to 'packages/routed.inc')
-rw-r--r-- | packages/routed.inc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/routed.inc b/packages/routed.inc index 2ccadf4c..92cd5701 100644 --- a/packages/routed.inc +++ b/packages/routed.inc @@ -32,7 +32,8 @@ function setup_routed() { global $config; $gw = ""; - if ($config['installedpackages']['routed']['config'][0]['enable'] == "on") { + if (isset($config['installedpackages']['routed']['config'][0]['enable']) && + $config['installedpackages']['routed']['config'][0]['enable'] == "on") { /* if user selected individual interfaces */ if (is_array($config['installedpackages']['routed']['config'][0]['interface_array'])) { $ifarr = $config['installedpackages']['routed']['config'][0]['interface_array']; @@ -55,7 +56,7 @@ function setup_routed() { function setup_etc_gateways($iface="") { global $config; - if ($iface != "") { + if (isset($iface)) { $realif= convert_friendly_interface_to_real_interface_name($iface); $ret = "if={$realif} "; } |