From 798d8644d63efa74dbabb69758e91cfb90189122 Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Mon, 3 Nov 2014 14:12:05 +0545 Subject: Fix obviously broken test in rc.initial.setlanip IMO might as well back-port any obviously wrong code to 2.1 branch, just in case anybody on 2.1.n cares for it or there is a need for another 2.1.n release. --- etc/rc.initial.setlanip | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'etc') diff --git a/etc/rc.initial.setlanip b/etc/rc.initial.setlanip index 8b3a820..f46e289 100755 --- a/etc/rc.initial.setlanip +++ b/etc/rc.initial.setlanip @@ -496,7 +496,7 @@ if ($intip6 != '') { } if ($intip != '' || $intip6 != '') { - if (count($ifdescrs) == "1" or $interface = "lan") { + if (count($ifdescrs) == "1" or $interface == "lan") { if ($debug) { echo "ifdescrs count is " . count($ifdescrs) . "\n"; echo "interface is {$interface} \n"; -- cgit v1.1