X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/blobdiff_plain/d678e549566bd0edb39c7f9279ef3caffdafbba3..13b2192a5933d2604b3ad2e4e48d3302a19ad8e5:/IMG/cpio/ventoy/ventoy_chain.sh diff --git a/IMG/cpio/ventoy/ventoy_chain.sh b/IMG/cpio/ventoy/ventoy_chain.sh index 938f2e2..6bc993c 100644 --- a/IMG/cpio/ventoy/ventoy_chain.sh +++ b/IMG/cpio/ventoy/ventoy_chain.sh @@ -305,6 +305,20 @@ ventoy_get_os_type() { echo 'blackPanther'; return fi + if $GREP -q 'primeos' /proc/version; then + echo 'primeos'; return + fi + + if $GREP -q 'austrumi' /proc/version; then + echo 'austrumi'; return + fi + + if [ -f /DISTRO_SPECS ]; then + if $GREP -q '[Pp]uppy' /DISTRO_SPECS; then + echo 'debian'; return + fi + fi + echo "default" } @@ -349,7 +363,7 @@ fi cd / -unset VTLOG FIND GREP EGREP CAT AWK SED SLEEP HEAD +unset VTLOG FIND GREP EGREP CAT AWK SED SLEEP HEAD vtcmdline for vtinit in $user_rdinit /init /sbin/init /linuxrc; do if [ -d /ventoy_rdroot ]; then