X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/blobdiff_plain/99627752964e77e1e0365cc7395bf9803a7fb93f..08d218fd828faf918d6dbdf58e23beb02aebcfdf:/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" }