From 40ecff3bb021d3e169b18e340971f779d7dc0be1 Mon Sep 17 00:00:00 2001 From: bergware Date: Fri, 5 May 2023 22:47:56 +0200 Subject: [PATCH] netconfig: PHP8 fix and regression fix --- plugins/dynamix/scripts/netconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/dynamix/scripts/netconfig b/plugins/dynamix/scripts/netconfig index 326669ac8..8b88a1a6d 100755 --- a/plugins/dynamix/scripts/netconfig +++ b/plugins/dynamix/scripts/netconfig @@ -46,7 +46,7 @@ if ($run) { $ifname = ifname($set); } else { // legacy syntax - if ($set=='eth0') $ifname = $old['BRIDGING']=='yes' ? ($old['BRNAME'] ?: 'br0') : ($old['BONDING']=='yes' ? ($old['BONDNAME'] ?: 'bond0') : $set); + if ($set=='eth0') $ifname = $old['BRIDGING']=='yes' ? ($old['BRNAME'] ?? 'br0') : ($old['BONDING']=='yes' ? ($old['BONDNAME'] ?? 'bond0') : $set); } } exec("/etc/rc.d/rc.inet1 ".escapeshellarg("{$ifname}_stop")." >/dev/null");