diff options
| author | Jonathan Bauer | 2016-01-08 14:28:46 +0100 |
|---|---|---|
| committer | Jonathan Bauer | 2016-01-08 14:28:46 +0100 |
| commit | 7106ee223592a0591e267daa7f71162e4ad658b0 (patch) | |
| tree | 490d793b56807918cbd6197086b5251d08a18145 /remote/modules/vmware/data/etc | |
| parent | [exam] renamed safe-mode service to 'exam.service' and removed unneeded code (diff) | |
| parent | [run-virt] openslx.exe: Hide console, re-set logoff caption periodically (diff) | |
| download | tm-scripts-7106ee223592a0591e267daa7f71162e4ad658b0.tar.gz tm-scripts-7106ee223592a0591e267daa7f71162e4ad658b0.tar.xz tm-scripts-7106ee223592a0591e267daa7f71162e4ad658b0.zip | |
Merge branch 'master' of git.openslx.org:openslx-ng/tm-scripts
Diffstat (limited to 'remote/modules/vmware/data/etc')
| -rw-r--r-- | remote/modules/vmware/data/etc/X11/Xreset.d/vmware | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/remote/modules/vmware/data/etc/X11/Xreset.d/vmware b/remote/modules/vmware/data/etc/X11/Xreset.d/vmware index ee436292..83bfb392 100644 --- a/remote/modules/vmware/data/etc/X11/Xreset.d/vmware +++ b/remote/modules/vmware/data/etc/X11/Xreset.d/vmware @@ -2,9 +2,16 @@ # VMWare cleanup # +# Unmount dirs that vmware sometimes leaves around VMWARE_TMP_DIRS="$(cat /proc/mounts | grep "/tmp/vmware-" | awk -F " " '{print $1}')" for DIR in $VMWARE_TMP_DIRS; do - umount -l "$DIR" || echo "Could not unmount." + umount "$DIR" && rmdir "$DIR" done -exit 0 +# Delete redo/temp files that sometimes stay around e.g. on vmware crash +for file in $(find /tmp/virt/vmware -type f -size +4M); do + fuser -s "$file" || rm -- "$file" +done + +true + |
