]>
git.wh0rd.org - home.git/blob - .bin/umount-tree
5 echo "Usage: $0 <root>"
9 mounts
=$
(mount |
grep " on ${root%/}/" |
awk '{print $3}' |
tac)
10 if [[ -z ${mounts} ]] ; then
11 echo "No mounts found ..."
18 printf '\t%s\n' ${mounts}
22 [[ ${v} == "y" ]] && sudo umount
-v ${mounts}