netconfig: fix regression error

This commit is contained in:
bergware
2016-06-05 16:10:56 +02:00
parent fdf74080be
commit 92749903a1
+1 -1
View File
@@ -33,7 +33,7 @@ if ($run && file_exists($cfg)) {
$ifname = ifname($set);
} else {
// legacy syntax
if ($i==0) $ifname = $old['BRIDGING']=='yes' ? $old['BRNAME'] : ($old['BONDING']=='yes' ? $old['BONDNAME'] : $set);
if ($set=='eth0') $ifname = $old['BRIDGING']=='yes' ? $old['BRNAME'] : ($old['BONDING']=='yes' ? $old['BONDNAME'] : $set);
}
}