summaryrefslogtreecommitdiffstats
path: root/remote/modules/vmware/data
diff options
context:
space:
mode:
authorSimon Rettberg2013-11-26 14:10:30 +0100
committerSimon Rettberg2013-11-26 14:10:30 +0100
commitbe323a8ae518c0891b4598d274e443f5d979356c (patch)
tree18840db1621c91595083ce4a227146497ae19861 /remote/modules/vmware/data
parent[vmchooser] Change path specs (diff)
parent[doc] setup_localization: First pass. Pleasepleaseplease add and comment! (diff)
downloadtm-scripts-be323a8ae518c0891b4598d274e443f5d979356c.tar.gz
tm-scripts-be323a8ae518c0891b4598d274e443f5d979356c.tar.xz
tm-scripts-be323a8ae518c0891b4598d274e443f5d979356c.zip
Merge branch 'master' of openslx:openslx-ng/tm-scripts
Diffstat (limited to 'remote/modules/vmware/data')
-rw-r--r--remote/modules/vmware/data/etc/X11/Xreset.d/vmware10
1 files changed, 10 insertions, 0 deletions
diff --git a/remote/modules/vmware/data/etc/X11/Xreset.d/vmware b/remote/modules/vmware/data/etc/X11/Xreset.d/vmware
new file mode 100644
index 00000000..c453aafd
--- /dev/null
+++ b/remote/modules/vmware/data/etc/X11/Xreset.d/vmware
@@ -0,0 +1,10 @@
+#
+# VMWare cleanup
+#
+
+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."
+done
+
+exit 0