mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
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:
@@ -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)"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user