aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--packages/routed.inc5
-rw-r--r--packages/routed.xml5
2 files changed, 7 insertions, 3 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} ";
}
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 @@
<fieldname>enable</fieldname>
<description>Enables the Routing Information Protocol daemon</description>
<type>checkbox</type>
+ <enablefields>interface_array,ripversion,passwd</enablefields>
</field>
<field>
<fielddescr>Interfaces</fielddescr>
- <fieldname>iface_array</fieldname>
+ <fieldname>interface_array</fieldname>
<value>lan</value>
<multiple>true</multiple>
<size>3</size>
<type>interfaces_selection</type>
<description>Select the interfaces that RIP will bind to. You can use the CTRL or COMMAND key to select multiple interfaces.</description>
+ <required />
</field>
<field>
<fielddescr>RIP Version</fielddescr>
@@ -84,6 +86,7 @@
<option><name>RIP Version 2</name><value>2</value></option>
</options>
<typehint>Select which RIP version the daemon will listen/advertise using.</typehint>
+ <required />
</field>
<field>
<fielddescr>RIPv2 password</fielddescr>