Merge branch 'ReadOnly' of github.com:FunKey-Project/FunKey-OS into ReadOnly
This commit is contained in:
commit
4bc5db8c79
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue