diff options
author | Erich Eckner <git@eckner.net> | 2021-04-14 12:50:15 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2021-04-14 12:50:15 +0200 |
commit | 1dc8b055dbe40f266073a50aea011e7f02d3b757 (patch) | |
tree | 9f4403c5add6ded0cea562f475a4832cf5ea31ba | |
parent | a41bb654309138aaed1c15baa66891548a5d048c (diff) | |
download | shutdownasap-1dc8b055dbe40f266073a50aea011e7f02d3b757.tar.xz |
shutdownasap: go to not-to-be-unmounted directory
-rwxr-xr-x | shutdownasap.in | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/shutdownasap.in b/shutdownasap.in index d2d471f..d131867 100755 --- a/shutdownasap.in +++ b/shutdownasap.in @@ -7,6 +7,7 @@ set -e . #ETCDIR#/shutdownasap.conf mkdir -p "${tmpDir}" +cd "${tmpDir}" quiet=false intentionSet=false @@ -157,4 +158,5 @@ case "$(head -n1 "${tmpDir}/intention")" in ;; esac +cd / rm -rf --one-file-system "${tmpDir}" |