X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/blobdiff_plain/d0edcc0ef0b6ef695ce96d2be84f1ebb02453b51..8f2bf03084b2d6ae691e1f08c8d962c465fb41e6:/IMG/cpio/ventoy/ventoy.sh diff --git a/IMG/cpio/ventoy/ventoy.sh b/IMG/cpio/ventoy/ventoy.sh index 5beb46d..edab7e8 100644 --- a/IMG/cpio/ventoy/ventoy.sh +++ b/IMG/cpio/ventoy/ventoy.sh @@ -184,6 +184,10 @@ ventoy_get_os_type() { fi fi + if $GREP -q 'android.x86' /proc/version; then + echo 'android'; return + fi + echo "default" } @@ -222,6 +226,11 @@ if [ "$rmproc" = "Y" ]; then $BUSYBOX_PATH/rm -rf /proc fi +if [ -f $VTOY_PATH/ventoy_persistent_map ]; then + export PERSISTENT='YES' + export PERSISTENCE='true' +fi + cd / unset VTOY_PATH VTLOG FIND GREP EGREP CAT AWK SED SLEEP HEAD