add support for openEuler

This commit is contained in:
longpanda
2021-03-13 18:55:05 +08:00
parent db892d5e12
commit 1e12969555
7 changed files with 260 additions and 0 deletions

View File

@@ -151,6 +151,8 @@ ventoy_get_os_type() {
echo 'debian'; return
elif $GREP -q 'Solus' /etc/os-release; then
echo 'rhel7'; return
elif $GREP -q 'openEuler' /etc/os-release; then
echo 'openEuler'; return
fi
fi
@@ -320,6 +322,10 @@ ventoy_get_os_type() {
fi
fi
if [ -f /etc/openEuler-release ]; then
echo "openEuler"; return
fi
echo "default"
}