Optimize udev process

This commit is contained in:
longpanda
2026-10-05 23:28:02 +08:00
parent 029a0a9d16
commit a2f6e4e31f
10 changed files with 367 additions and 11 deletions
@@ -61,6 +61,15 @@ ventoy_get_debian_distro() {
if $GREP -q 'NAME="Kylin"' /etc/os-release; then
echo 'kylin'; return
fi
if $GREP -q 'ID=ubuntu' /etc/os-release; then
if $GREP -q 'VERSION_ID=\"2[4-9]\.' /etc/os-release; then
echo 'ubuntu'; return
fi
if $GREP -q 'VERSION_ID=\"3[0-9]\.' /etc/os-release; then
echo 'ubuntu'; return
fi
fi
fi
if $GREP -q 'slax/' /proc/cmdline; then