From 1d5a5cd50ca4c6c9ec6c547b29655366adc5efb1 Mon Sep 17 00:00:00 2001
From: Michel-FK <michel.stempin@funkey-project.com>
Date: Tue, 8 Dec 2020 22:43:33 +0100
Subject: [PATCH] move gmenu2x settings to /mnt

Signed-off-by: Michel-FK <michel.stempin@funkey-project.com>
---
 FunKey/board/funkey/rootfs-overlay/root/.gmenu2x              | 2 +-
 .../board/funkey/rootfs-overlay/usr/local/sbin/start_launcher | 4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/FunKey/board/funkey/rootfs-overlay/root/.gmenu2x b/FunKey/board/funkey/rootfs-overlay/root/.gmenu2x
index 7a83308..117526c 120000
--- a/FunKey/board/funkey/rootfs-overlay/root/.gmenu2x
+++ b/FunKey/board/funkey/rootfs-overlay/root/.gmenu2x
@@ -1 +1 @@
-/tmp/funkey
\ No newline at end of file
+/mnt/funkey/.gmenu2x
\ No newline at end of file
diff --git a/FunKey/board/funkey/rootfs-overlay/usr/local/sbin/start_launcher b/FunKey/board/funkey/rootfs-overlay/usr/local/sbin/start_launcher
index ae7c853..c130bbd 100755
--- a/FunKey/board/funkey/rootfs-overlay/usr/local/sbin/start_launcher
+++ b/FunKey/board/funkey/rootfs-overlay/usr/local/sbin/start_launcher
@@ -5,6 +5,7 @@ PREVENT_LAUNCHER_FILE=/mnt/prevent_launcher
 PREVENT_LAUNCHER_FILE2=/boot/prevent_launcher
 QUICK_LOAD_FILE=/mnt/quick_load_cmd
 GMENU2X_FILE=/mnt/gmenu2x
+GMENU2X_HOME=/mnt/funkey/.gmenu2x
 
 if [ -f ${LOCK_FILE} ]; then
     echo "${LOCK_FILE} already exists"
@@ -15,6 +16,9 @@ touch ${LOCK_FILE}
 mkdir -p ${MEDNAFEN_HOME}
 cp /usr/games/lynxboot.img /usr/games/mednafen-09x.cfg ${MEDNAFEN_HOME}/
 
+mkdir -p ${GMENU2X_HOME}
+mkdir -p /mnt/apps
+
 # Launch Previous Game
 if [ -f ${QUICK_LOAD_FILE} ]; then
     command=$(cat ${QUICK_LOAD_FILE})