From c9edfb4a766940b852f5b3c4e9cec1c67b0af061 Mon Sep 17 00:00:00 2001 From: Daniel Stefan Haischt Date: Thu, 31 Aug 2006 22:18:15 +0000 Subject: - changed iface_array to interface_array - added required to interface_array and ripversion - added enablefields to field enable --- packages/routed.inc | 5 +++-- packages/routed.xml | 5 ++++- 2 files changed, 7 insertions(+), 3 deletions(-) (limited to 'packages') 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} "; } diff --git a/packages/routed.xml b/packages/routed.xml index 9c216bff..31f0e59b 100644 --- a/packages/routed.xml +++ b/packages/routed.xml @@ -64,15 +64,17 @@ enable Enables the Routing Information Protocol daemon checkbox + interface_array,ripversion,passwd Interfaces - iface_array + interface_array lan true 3 interfaces_selection Select the interfaces that RIP will bind to. You can use the CTRL or COMMAND key to select multiple interfaces. + RIP Version @@ -84,6 +86,7 @@ Select which RIP version the daemon will listen/advertise using. + RIPv2 password -- cgit v1.2.3