Skip to content

Commit

Permalink
ifdown-eth: we need to flush global scope as well but it is stuck som…
Browse files Browse the repository at this point in the history
…e time
  • Loading branch information
lnykryn committed Jun 30, 2016
1 parent 847dc97 commit d59202d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sysconfig/network-scripts/ifdown-eth
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,10 @@ if [ -d "/sys/class/net/${REALDEVICE}" ]; then
LABEL="label ${DEVICE}"
fi
if [ "${REALDEVICE}" = "lo" ]; then
ip addr flush dev ${REALDEVICE} ${LABEL} scope host 2>/dev/null
TIMEOUT=""
[ -x /usr/bin/timeout ] && TIMEOUT="/usr/bin/timeout --signal=SIGQUIT 4"
$TIMEOUT ip addr flush dev ${REALDEVICE} ${LABEL} scope global 2>/dev/null
$TIMEOUT ip addr flush dev ${REALDEVICE} ${LABEL} scope host 2>/dev/null
else
ip addr flush dev ${REALDEVICE} ${LABEL} scope global 2>/dev/null
ip -4 addr flush dev ${REALDEVICE} ${LABEL} scope host 2>/dev/null
Expand Down

0 comments on commit d59202d

Please sign in to comment.