Merge branch 'ReadOnly' of github.com:FunKey-Project/FunKey-OS into ReadOnly

This commit is contained in:
Vincent-FK 2020-11-03 23:25:28 +01:00
commit 4bc5db8c79
3 changed files with 2 additions and 6 deletions

View File

@ -52,9 +52,7 @@ while true; do
#echo "bat_percent_rescaled_maxed = ${bat_percent_rescaled_maxed}" #echo "bat_percent_rescaled_maxed = ${bat_percent_rescaled_maxed}"
# Save in file # Save in file
rw
echo ${bat_percent_rescaled_maxed} > ${BAT_PERCENT_RESCALED_FILE} echo ${bat_percent_rescaled_maxed} > ${BAT_PERCENT_RESCALED_FILE}
ro
# Low bat status detection # Low bat status detection
if [ "$(cat ${USB_PRESENT_FILE})" -eq "0" ]; then if [ "$(cat ${USB_PRESENT_FILE})" -eq "0" ]; then

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