X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/blobdiff_plain/8e0c630fe5aa1b789639e62e86bd69481d2c3c0b..42990058edb64957bd9a97f6ff791fcb6a61285c:/IMG/cpio/ventoy/ventoy.sh?ds=inline diff --git a/IMG/cpio/ventoy/ventoy.sh b/IMG/cpio/ventoy/ventoy.sh index 543543d..84f5492 100644 --- a/IMG/cpio/ventoy/ventoy.sh +++ b/IMG/cpio/ventoy/ventoy.sh @@ -87,6 +87,10 @@ ventoy_get_os_type() { elif $EGREP -q 'archlinux|ARCH' /proc/version; then echo 'arch'; return + # kiosk + elif $EGREP -q 'kiosk' /proc/version; then + echo 'kiosk'; return + # gentoo elif $EGREP -q '[Gg]entoo' /proc/version; then echo 'gentoo'; return @@ -169,7 +173,24 @@ ventoy_get_os_type() { 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" } @@ -198,7 +219,6 @@ if [ "$VTOY_BREAK_LEVEL" = "03" ] || [ "$VTOY_BREAK_LEVEL" = "13" ]; then fi - #################################################################### # # # Step 4 : Hand over to real init # @@ -209,6 +229,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