X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/blobdiff_plain/ad9a031092f1d953d10bcf6ec77cb2fa1fc2c103..bf4e014023e6fd7b117b4f086fc0c190d46ecdcf:/IMG/cpio/ventoy/hook/debian/ventoy-hook.sh diff --git a/IMG/cpio/ventoy/hook/debian/ventoy-hook.sh b/IMG/cpio/ventoy/hook/debian/ventoy-hook.sh index 2bc7a86..df318e9 100644 --- a/IMG/cpio/ventoy/hook/debian/ventoy-hook.sh +++ b/IMG/cpio/ventoy/hook/debian/ventoy-hook.sh @@ -35,6 +35,8 @@ ventoy_get_debian_distro() { else echo 'puppy'; return fi + elif $GREP -m1 -q 'Minimal.*Linux.*Live' /init; then + echo 'mll'; return fi fi @@ -60,6 +62,14 @@ ventoy_get_debian_distro() { echo 'porteus'; return fi + if $GREP -q 'linuxconsole' /proc/version; then + echo 'linuxconsole'; return + fi + + if $GREP -q 'vyos' /proc/version; then + echo 'vyos'; return + fi + echo 'default' } @@ -68,10 +78,10 @@ DISTRO=$(ventoy_get_debian_distro) echo "##### distribution = $DISTRO ######" >> $VTLOG . $VTOY_PATH/hook/debian/${DISTRO}-hook.sh - - - - +if [ -f /bin/env2debconf ]; then + $SED "1a /bin/sh $VTOY_PATH/hook/debian/ventoy_env2debconf.sh" -i /bin/env2debconf + $SED "s#in *\$(set)#in \$(cat /ventoy/envset)#" -i /bin/env2debconf +fi