X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/blobdiff_plain/05a1b863a66bf72b26e5d87570c4e0e61b9736cd..cd4a5fcb0685b8a12915d22efc5c1e0cc8b40d9b:/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 22e2790..997e836 100644 --- a/IMG/cpio/ventoy/hook/debian/ventoy-hook.sh +++ b/IMG/cpio/ventoy/hook/debian/ventoy-hook.sh @@ -21,11 +21,36 @@ DISTRO='default' -if [ -e /etc/initrd-release ]; then +if [ -d /KNOPPIX ]; then + DISTRO='knoppix' +elif [ -e /etc/initrd-release ]; then if $EGREP -q "ID=.*antix|ID=.*mx" /etc/initrd-release; then DISTRO='antix' fi fi +if [ -e /init ]; then + if $GREP -q PUPPYSFS /init; then + if $GREP -q VEKETSFS /init; then + DISTRO='veket' + else + DISTRO='puppy' + fi + fi +fi + +if [ -e /etc/os-release ]; then + if $GREP -q 'Tails' /etc/os-release; then + DISTRO='tails' + fi +fi + +if [ "$DISTRO"="default" ]; then + if $GREP -q 'slax/' /proc/cmdline; then + DISTRO='slax' + fi +fi + + echo "##### distribution = $DISTRO ######" >> $VTLOG . $VTOY_PATH/hook/debian/${DISTRO}-hook.sh