# 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
# 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
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
+ 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
if $BUSYBOX_PATH/dmesg | $GREP -q -m1 "Xen:"; then