X-Git-Url: https://iankelling.org/git/?p=newns;a=blobdiff_plain;f=newns;h=aff500b5ecc0f0795121ac05a7c910aafec53bad;hp=39b664b1bd0aa270424d39863cd2eab1a49bfd7e;hb=c3e7838c3eb98ddb1db59b52aa3b6fca9cd7f643;hpb=0952a51231967d9ba57154690843f1c89a1f2c2b diff --git a/newns b/newns index 39b664b..aff500b 100755 --- a/newns +++ b/newns @@ -211,6 +211,9 @@ stop() { if $create; then ip netns del $nn fi + if mountpoint /root/mount_namespaces/$nn >/dev/null; then + umount /root/mount_namespaces/$nn + fi } case $action in