X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=newns;h=31f1b528c80bdab325c17631adf5c6245c745895;hb=914cdb74031df6ae068ed87376c47944fbfaf934;hp=d60c0bcec3c43cccab802fcf2c5faca3492ffed6;hpb=d0657d01d7f29b36a03c72571762ad665552429b;p=newns diff --git a/newns b/newns index d60c0bc..31f1b52 100755 --- a/newns +++ b/newns @@ -38,34 +38,45 @@ fi usage() { cat <. EOF exit ${1:-0} } @@ -210,6 +221,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