mirror of
https://github.com/ventoy/Ventoy.git
synced 2026-11-16 10:53:14 +01:00
Optimize udev process
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user