diff options
author | Andreas Loibl <andreas@andreas-loibl.de> | 2011-03-17 05:07:10 +0100 |
---|---|---|
committer | Andreas Loibl <andreas@andreas-loibl.de> | 2011-03-17 05:07:10 +0100 |
commit | 00286a5db286e21a766b6af057052dc5d17561ad (patch) | |
tree | 7232dadf6dc3570705c3104fe0c000f480c7a0ee /backend/modules/cleanup | |
download | acritoxinstaller-00286a5db286e21a766b6af057052dc5d17561ad.zip acritoxinstaller-00286a5db286e21a766b6af057052dc5d17561ad.tar.gz |
Initial commit
Diffstat (limited to 'backend/modules/cleanup')
-rw-r--r-- | backend/modules/cleanup | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/backend/modules/cleanup b/backend/modules/cleanup new file mode 100644 index 0000000..fe604a0 --- /dev/null +++ b/backend/modules/cleanup @@ -0,0 +1,15 @@ +#!/bin/bash + +function cleanup() +{ + + cd / + umount "$TARGET/proc" &>/dev/null + umount "$TARGET/dev" &>/dev/null + umount "$TARGET/sys" &>/dev/null + umount_all_affected "$(hdmap_get device of mountpoint /)" &>/dev/null + umount "$TARGET" &>/dev/null + umount "/live/filesystem" &>/dev/null + rmdir "$TARGET" "/live/filesystem" &>/dev/null +} + |