Support Lenovo EasyStartup

This commit is contained in:
longpanda
2021-08-23 16:56:17 +08:00
parent 112c557428
commit 05e208ea2a
8 changed files with 194 additions and 0 deletions

View File

@@ -58,6 +58,12 @@ ventoy_get_os_type() {
# rhel6/CentOS6 and all other distributions based on them
elif $GREP -q 'el6' /proc/version; then
if [ -f /sbin/detectcd ]; then
if $GREP -q -i 'LENOVO-EasyStartup' /sbin/detectcd; then
echo 'easystartup'; return
fi
fi
echo 'rhel6'; return
# rhel7/CentOS7/rhel8/CentOS8 and all other distributions based on them