Browse Source

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>
lilik-openwrt-22.03
Florian Eckert 7 years ago
parent
commit
28c8b664e4
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      net/mwan3/files/etc/hotplug.d/iface/15-mwan3

+ 3
- 1
net/mwan3/files/etc/hotplug.d/iface/15-mwan3 View File

@ -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})"


Loading…
Cancel
Save