link executor: Don't complain about a vanished interface when downing it
Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
This commit is contained in:
parent
044d8307f9
commit
c6faf452b9
1 changed files with 5 additions and 0 deletions
|
@ -74,6 +74,11 @@ up)
|
|||
fi
|
||||
;;
|
||||
down)
|
||||
# Don't complain about a vanished interface when downing it
|
||||
if [ -z "${MOCK}" -a ! -d "/sys/class/net/${IFACE}" ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
${MOCK} ip link set down dev "${IFACE}"
|
||||
;;
|
||||
destroy)
|
||||
|
|
Loading…
Reference in a new issue