diff --git a/skeleton/.tmp_update/runtime.sh b/skeleton/.tmp_update/runtime.sh new file mode 100644 index 0000000..6895a3e --- /dev/null +++ b/skeleton/.tmp_update/runtime.sh @@ -0,0 +1,19 @@ +#!/bin/sh + +# install +if [ -d "/mnt/SDCARD/miyoo354" ]; then + rm -rf /tmp/runtime.sh.old + mv /mnt/SDCARD/.tmp_update/runtime.sh /tmp/runtime.sh.old + exit 0 +fi + +# or launch +LAUNCH_PATH="/mnt/SDCARD/.system/paks/MiniUI.pak/launch.sh" +if [ -f "$LAUNCH_PATH" ]; then + "$LAUNCH_PATH" +fi + +while true; do + reboot + sleep 10 +done diff --git a/skeleton/.tmp_update/updater b/skeleton/.tmp_update/updater index 7d14f8a..6fe0d91 100755 --- a/skeleton/.tmp_update/updater +++ b/skeleton/.tmp_update/updater @@ -1,18 +1,2 @@ #!/bin/sh - -# install -if [ -d "/mnt/SDCARD/miyoo354" ] ; then - exit 0 -fi - -# or launch -LAUNCH_PATH="/mnt/SDCARD/.system/paks/MiniUI.pak/launch.sh" -if [ -f "$LAUNCH_PATH" ] ; then - "$LAUNCH_PATH" -fi - -# something went terribly wrong -while true ; do - reboot # under no circumstances should stock be allowed to touch this card - sleep 10 -done +/mnt/SDCARD/.tmp_update/runtime.sh