*** interfaces.inc.orig Thu Jan 28 14:48:13 2016 --- interfaces.inc Thu Jan 28 15:16:26 2016 *************** *** 1040,1046 **** } foreach ($iflist as $if => $ifname) { ! $realif = $config['interfaces'][$if]['if']; if (strstr($realif, "bridge")) { $bridge_list[$if] = $ifname; } else if (strstr($realif, "gre")) { --- 1040,1057 ---- } foreach ($iflist as $if => $ifname) { ! $ifcfg = $config['interfaces'][$if]; ! $realif = $ifcfg['if']; ! ! # We need to do this both here -and- in interface_configure; as ! # some interfaces do not need interface_configure; yet changes ! # bypass interfaces_configure. ! # ! if (isset($ifcfg['descr'])) { ! log_error("Wand change"); ! mwexec("/sbin/ifconfig " . escapeshellarg($ifcfg['if']) . " description ".escapeshellarg($ifcfg['descr'])); ! }; ! if (strstr($realif, "bridge")) { $bridge_list[$if] = $ifname; } else if (strstr($realif, "gre")) { *************** *** 1065,1070 **** --- 1076,1082 ---- echo gettext("done.") . "\n"; } } + } /* *************** *** 3158,3163 **** --- 3170,3179 ---- $wancfg = $config['interfaces'][$interface]; + if (isset($wancfg['descr'])) { + mwexec("/sbin/ifconfig " . escapeshellarg($wancfg['if']) . " description ".escapeshellarg($wancfg['descr'])); + }; + if (!isset($wancfg['enable'])) { return; } #4