nlbwmon: add hotplug script to reload after interface ifup

Add a hotplug script to reload nlbwmon's config after interface
ifup actions.

That should improve the detection of the IPv6 LAN address
that can get enabled a bit later in the boot process.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
This commit is contained in:
Hannu Nyman
2020-07-28 19:23:12 +03:00
parent 211db341e9
commit 25dfa20780
2 changed files with 13 additions and 2 deletions
+9
View File
@@ -0,0 +1,9 @@
#!/bin/sh
[ -n "$DEVICE" ] || exit 0
[ "$ACTION" = ifup ] && /etc/init.d/nlbwmon enabled && {
/etc/init.d/nlbwmon reload
logger -t nlbwmon "Reloading nlbwmon due to $ACTION of $INTERFACE ($DEVICE)"
}