From 6a2a13966fbb522dd0cf1104e1b78de627b5d6fa Mon Sep 17 00:00:00 2001 From: Giancarlo Razzolini Date: Thu, 11 Apr 2019 23:26:38 -0300 Subject: [PATCH] netconf_hook: Add handling of the local interface for services that need to bind to it. --- netconf_hook | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/netconf_hook b/netconf_hook index fe7b672..2a76737 100644 --- a/netconf_hook +++ b/netconf_hook @@ -83,6 +83,8 @@ run_hook () fi + # set link up for lo + /sbin/ip link set up lo } run_cleanuphook () @@ -91,4 +93,7 @@ run_cleanuphook () /sbin/ip addr flush dev "$device" /sbin/ip link set down "$device" done + + # set ip link down for lo + /sbin/ip link set down lo }