From afb16a463489e5c80646cd00c019379b2c0ff1c4 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sat, 9 Feb 2008 03:47:07 +0000 Subject: Show WAN if LAN is not enabled. --- usr/local/www/services_dhcp.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/usr/local/www/services_dhcp.php b/usr/local/www/services_dhcp.php index 25a34bd..309376c 100755 --- a/usr/local/www/services_dhcp.php +++ b/usr/local/www/services_dhcp.php @@ -46,8 +46,11 @@ if($config['installedpackages']['olsrd']) { } } -if(!$iflist) - $iflist = array("lan" => "LAN"); +if($config['interfaces']['lan']) + if(!$iflist) + $iflist = array("lan" => "LAN"); +else + $iflist = array("wan" => $g['wan_interface_name']); for ($i = 1; isset($config['interfaces']['opt' . $i]); $i++) { $oc = $config['interfaces']['opt' . $i]; -- cgit v1.1