修正安装时流标签名称TSG_MASTER_INTERNAL_LABEL

This commit is contained in:
liuxueli
2020-06-24 13:35:54 +08:00
parent 848e5e98f0
commit f2e4ab403a
2 changed files with 14 additions and 20 deletions

View File

@@ -1,22 +1,19 @@
DST=${RPM_INSTALL_PREFIX}
echo " pre install: $1"
mkdir -p ${DST}/plug/platform/
mkdir -p ${DST}/etc/
touch ${DST}/plug/conflist.inf
touch ${DST}/etc/project_list.conf
DST=${RPM_INSTALL_PREFIX}
if [[ -z `grep -rn 'POLICY_PRIORITY' ${DST}/etc/project_list.conf` ]];then
echo 'POLICY_PRIORITY struct' >> ${DST}/etc/project_list.conf
fi
mkdir -p ${DST}/plug/platform/
mkdir -p ${DST}/etc/
touch ${DST}/plug/conflist.inf
touch ${DST}/etc/project_list.conf
if [[ -z `grep -rn 'TSG_MASTER_INTERNAL_LABEL' ${DST}/etc/project_list.conf` ]];then
echo 'TSG_MASTER_INTERNAL_LABEL long' >> ${DST}/etc/project_list.conf
fi
if [[ -z `grep -rn 'POLICY_PRIORITY' ${DST}/etc/project_list.conf` ]];then
echo 'POLICY_PRIORITY struct' >> ${DST}/etc/project_list.conf
fi
if [[ -z `grep -rn 'ESTABLISH_LATENCY' ${DST}/etc/project_list.conf` ]];then
echo 'ESTABLISH_LATENCY long' >> ${DST}/etc/project_list.conf
fi
if [[ -z `grep -rn 'tsg_master.inf' ${DST}/plug/conflist.inf` ]];then
sed -i '/\[platform\]/a\./plug/platform/tsg_master/tsg_master.inf' ${DST}/plug/conflist.inf
fi
if [[ -z `grep -rn 'tsg_master.inf' ${DST}/plug/conflist.inf` ]];then
sed -i '/\[platform\]/a\./plug/platform/tsg_master/tsg_master.inf' ${DST}/plug/conflist.inf
fi

View File

@@ -1,7 +1,4 @@
if [ $1 == 0 ]; then
echo "uninstall: $1"
DST=${RPM_INSTALL_PREFIX}
mkdir -p ${DST}/plug/platform/