!54 增加支持平台:FusionOS

Merge pull request !54 from 胡义成/master
This commit is contained in:
opengauss-bot 2022-09-16 09:37:39 +00:00 committed by Gitee
commit fc46835e5d
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -23,6 +23,9 @@ then
elif [ -f "/etc/openEuler-release" ]
then
kernel=$(cat /etc/openEuler-release | awk -F ' ' '{print $1}' | tr A-Z a-z)
elif [ -f "/etc/FusionOS-release" ]
then
kernel=$(cat /etc/FusionOS-release | awk -F ' ' '{print $1}' | tr A-Z a-z)
elif [ -f "/etc/centos-release" ]
then
kernel=$(cat /etc/centos-release | awk -F ' ' '{print $1}' | tr A-Z a-z)
@ -123,6 +126,16 @@ then
fi
##################################################################################
# FusionOS platform
# the result form like this: fusionos_x86_64
##################################################################################
if [ "$kernel"x = "fusionos"x ]
then
plat_form_str=fusionos_"$cpu_bit"
fi
##################################################################################
# kylin platform
# the result form like this: kylin_aarch64