summaryrefslogtreecommitdiffstats
path: root/core/modules/vmchooser2
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/vmchooser2')
-rwxr-xr-xcore/modules/vmchooser2/data/etc/profile.d/10-vmchooser.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/core/modules/vmchooser2/data/etc/profile.d/10-vmchooser.sh b/core/modules/vmchooser2/data/etc/profile.d/10-vmchooser.sh
new file mode 100755
index 00000000..5371590d
--- /dev/null
+++ b/core/modules/vmchooser2/data/etc/profile.d/10-vmchooser.sh
@@ -0,0 +1,13 @@
+#!/bin/ash
+
+TEMP_HOME_DIR="$HOME"
+PERSISTENT_HOME_DIR="$HOME/PERSISTENT"
+
+if [ -d "$PERSISTENT_HOME_DIR" ]; then
+
+ rm -f -- "$TEMP_HOME_DIR/.config/openslx"
+ mkdir -p "$PERSISTENT_HOME_DIR/.config/openslx" "$TEMP_HOME_DIR/.config"
+ ln -nfs "$PERSISTENT_HOME_DIR/.config/openslx" "$TEMP_HOME_DIR/.config/openslx"
+
+fi
+