mirror of
https://github.com/openwrt/packages.git
synced 2026-01-09 07:40:19 +04:00
net/mwan3: fix hotplug on ACTION ifdown
On dynamic interface proto (dhcp/pppoe) the hotplug will not execude (exit 9) because the gateway is already released. The check will now only be made on a ifup ACTION event. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
@@ -30,7 +30,9 @@ elif [ "$family" == "ipv6" ]; then
|
||||
network_get_gateway6 gateway $INTERFACE
|
||||
fi
|
||||
|
||||
[ -n "$gateway" ] || exit 9
|
||||
if [ "$ACTION" == "ifup" ]; then
|
||||
[ -n "$gateway" ] || exit 9
|
||||
fi
|
||||
|
||||
$LOG notice "$ACTION interface $INTERFACE (${DEVICE:-unknown})"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user