X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/blobdiff_plain/45d15a764fe3a02d57778d864026ff1ef2ecad91..8f2bf03084b2d6ae691e1f08c8d962c465fb41e6:/IMG/cpio/ventoy/ventoy.sh diff --git a/IMG/cpio/ventoy/ventoy.sh b/IMG/cpio/ventoy/ventoy.sh index 727102a..edab7e8 100644 --- a/IMG/cpio/ventoy/ventoy.sh +++ b/IMG/cpio/ventoy/ventoy.sh @@ -130,6 +130,7 @@ ventoy_get_os_type() { echo 'xen'; return elif $GREP -q 'SUSE ' /etc/os-release; then echo 'suse'; return + fi fi @@ -156,6 +157,37 @@ ventoy_get_os_type() { echo 'debian'; return fi + if $GREP -q 'Clear Linux ' /proc/version; then + echo 'clear'; return + fi + + if $GREP -q 'artix' /proc/version; then + echo 'arch'; return + fi + + if $GREP -q 'berry ' /proc/version; then + echo 'berry'; return + fi + + if $GREP -q 'Gobo ' /proc/version; then + echo 'gobo'; return + fi + + if $GREP -q 'NuTyX' /proc/version; then + echo 'nutyx'; return + fi + + if [ -d /gnu ]; then + vtLineNum=$($FIND /gnu/ -name guix | $BUSYBOX_PATH/wc -l) + if [ $vtLineNum -gt 0 ]; then + echo 'guix'; return + fi + fi + + if $GREP -q 'android.x86' /proc/version; then + echo 'android'; return + fi + echo "default" } @@ -194,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