X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/blobdiff_plain/042ca4b5e36ffbe5897083e7bce2cf76dc145efd..c7693d4ecd7950ff7696aba13aa8e44a16c24f4e:/IMG/cpio/ventoy/ventoy_loop.sh diff --git a/IMG/cpio/ventoy/ventoy_loop.sh b/IMG/cpio/ventoy/ventoy_loop.sh index ae76a57..38e6016 100644 --- a/IMG/cpio/ventoy/ventoy_loop.sh +++ b/IMG/cpio/ventoy/ventoy_loop.sh @@ -75,6 +75,10 @@ ventoy_get_os_type() { echo 'openwrt'; return fi + if $GREP -q 'easyos' /proc/cmdline; then + echo 'easyos'; return + fi + if [ -e /BOOT_SPECS ]; then if $GREP -q 'easyos' /BOOT_SPECS; then echo 'easyos'; return @@ -127,8 +131,8 @@ ventoy_get_os_type() { # Deepin : do the same process with debian elif $GREP -q '[Dd]eepin' /proc/version; then - echo 'debian'; return - + echo 'debian'; return + # SUSE elif $GREP -q 'SUSE' /proc/version; then echo 'suse'; return @@ -198,8 +202,12 @@ ventoy_get_os_type() { echo 'rhel7'; return elif $GREP -q 'openEuler' /etc/os-release; then echo 'openEuler'; return - elif $GREP -q 'fuyu' /etc/os-release; then + elif $GREP -q 'fuyu' /etc/os-release; then echo 'openEuler'; return + elif $GREP -q 'deepin' /etc/os-release; then + echo 'debian'; return + elif $GREP -q 'chinauos' /etc/os-release; then + echo 'debian'; return fi fi