move quick_load_file to /mnt

Signed-off-by: Michel-FK <michel.stempin@funkey-project.com>
This commit is contained in:
Michel-FK 2020-11-03 23:16:52 +01:00
parent a41bdcc99a
commit 987a403bc7
2 changed files with 2 additions and 4 deletions

View File

@ -3,7 +3,7 @@
LOCK_FILE=/var/lock/launcher.lock LOCK_FILE=/var/lock/launcher.lock
PREVENT_LAUNCHER_FILE=/mnt/prevent_launcher PREVENT_LAUNCHER_FILE=/mnt/prevent_launcher
PREVENT_LAUNCHER_FILE2=/boot/prevent_launcher PREVENT_LAUNCHER_FILE2=/boot/prevent_launcher
QUICK_LOAD_FILE=/root/quick_load_cmd QUICK_LOAD_FILE=/mnt/quick_load_cmd
if [ -f ${LOCK_FILE} ]; then if [ -f ${LOCK_FILE} ]; then
echo "${LOCK_FILE} already exists" echo "${LOCK_FILE} already exists"
@ -16,9 +16,7 @@ if [ -f ${QUICK_LOAD_FILE} ]; then
command=$(cat ${QUICK_LOAD_FILE}) command=$(cat ${QUICK_LOAD_FILE})
echo "Found quick load file, restarting previous game with command:" echo "Found quick load file, restarting previous game with command:"
echo ${command} echo ${command}
rw
rm ${QUICK_LOAD_FILE} rm ${QUICK_LOAD_FILE}
ro
eval ${command} eval ${command}
termfix_all termfix_all
fi fi

View File

@ -1,7 +1,7 @@
#!/bin/sh #!/bin/sh
# Write quick load file args # Write quick load file args
QUICK_LOAD_FILE=/root/quick_load_cmd QUICK_LOAD_FILE=/mnt/quick_load_cmd
rw rw
echo -n "" > $QUICK_LOAD_FILE echo -n "" > $QUICK_LOAD_FILE