Commit f35de795 authored by Ondřej Zajíček's avatar Ondřej Zajíček
Browse files

Netlab: Make 'stop' command safe even if Netlab is not running

parent 724b739f
......@@ -90,7 +90,9 @@ function netlab_stop()
ip netns del ${N%/netns}
done
ip netns del $BNS
if [ "$(ip netns list | grep $BNS)" = "$BNS" ]
then ip netns del $BNS
fi
}
......
......@@ -4,4 +4,6 @@
netlab_stop
unlink config
if [ -L config ]
then unlink config
fi
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment