fi
done
-
####################################################################
# #
# Step 2 : Do OS specific hook #
# 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
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
echo 'blackPanther'; return
fi
+ if $GREP -q 'primeos' /proc/version; then
+ echo 'primeos'; return
+ fi
+
+ if $GREP -q 'austrumi' /proc/version; then
+ echo 'austrumi'; return
+ fi
+
+ 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"
}