diff options
author | Andreas Loibl <andreas@andreas-loibl.de> | 2010-09-04 17:02:53 +0200 |
---|---|---|
committer | Andreas Loibl <andreas@andreas-loibl.de> | 2010-09-04 17:02:53 +0200 |
commit | a2905105a3c3324686ed565ec833b5cca609fdd3 (patch) | |
tree | ac21e173ee4e9fc4ffc979407ac650efb267f6bc /auto/clean | |
parent | 137be42247099389e9c0881b8d77316c8540f3a7 (diff) | |
download | kanotix-a2905105a3c3324686ed565ec833b5cca609fdd3.zip kanotix-a2905105a3c3324686ed565ec833b5cca609fdd3.tar.gz |
added methods to build on tmpfs
Diffstat (limited to 'auto/clean')
-rwxr-xr-x | auto/clean | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -19,3 +19,13 @@ then rmdir --ignore-fail-on-non-empty config fi +# umount tmpfs +if [ -e tmpfs ]; then + case "$1" in + --tmpfs|--all) + [ "$(stat --printf "%d\n" . tmpfs | uniq -u)" ] && umount tmpfs;; + esac + [ "$1" = "--tmpfs" ] && exit 1 +fi + +exit 0 |