X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/blobdiff_plain/324c97883ae693165f35cf8defe93888de948880..69bc90da422b8ec4d355f81df78c8bd7137addeb:/IMG/cpio/ventoy/ventoy_loop.sh diff --git a/IMG/cpio/ventoy/ventoy_loop.sh b/IMG/cpio/ventoy/ventoy_loop.sh index 2094a49..bf67ec4 100644 --- a/IMG/cpio/ventoy/ventoy_loop.sh +++ b/IMG/cpio/ventoy/ventoy_loop.sh @@ -196,6 +196,10 @@ 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 + elif $GREP -q 'fuyu' /etc/os-release; then + echo 'openEuler'; return fi fi @@ -360,9 +364,15 @@ ventoy_get_os_type() { if [ -f /DISTRO_SPECS ]; then if $GREP -q '[Pp]uppy' /DISTRO_SPECS; then echo 'debian'; return + elif $GREP -q 'veket' /DISTRO_SPECS; then + echo 'debian'; return fi fi + if [ -f /etc/openEuler-release ]; then + echo "openEuler"; return + fi + echo "default" }