X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/blobdiff_plain/1bf3e73373ccf4d515e4b554b5d8e233aaf1e6f3..8dce0adda6e1967de616287e224b914eb1bcef8e:/IMG/cpio/ventoy/ventoy_loop.sh diff --git a/IMG/cpio/ventoy/ventoy_loop.sh b/IMG/cpio/ventoy/ventoy_loop.sh index a1be76d..c6f12df 100644 --- a/IMG/cpio/ventoy/ventoy_loop.sh +++ b/IMG/cpio/ventoy/ventoy_loop.sh @@ -92,6 +92,10 @@ ventoy_get_os_type() { fi fi + if $GREP -q 'ventoyos=' /proc/cmdline; then + $SED "s/.*ventoyos=\([a-zA-Z0-9_-]*\).*/\1/" /proc/cmdline; return + fi + echo "default" }