6 lines
119 B
Bash
Executable File
6 lines
119 B
Bash
Executable File
#!/bin/rc
|
|
|
|
mnts=`{awk '{ if ($1 ~ /^\// && $2 != "/") print $2 }' < /proc/mounts | tac}
|
|
~ $#mnts 0 || umount -r $mnts
|
|
|