From 25dfa20780085ec3851470fea76833e0c023e70c Mon Sep 17 00:00:00 2001 From: Hannu Nyman Date: Tue, 28 Jul 2020 19:23:12 +0300 Subject: 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 --- net/nlbwmon/files/nlbwmon.hotplug | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 net/nlbwmon/files/nlbwmon.hotplug (limited to 'net/nlbwmon/files/nlbwmon.hotplug') diff --git a/net/nlbwmon/files/nlbwmon.hotplug b/net/nlbwmon/files/nlbwmon.hotplug new file mode 100644 index 000000000..bd486820f --- /dev/null +++ b/net/nlbwmon/files/nlbwmon.hotplug @@ -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)" +} + -- cgit v1.2.3