From 6749f758526820d5d3ed5b2f727b16bd250fc106 Mon Sep 17 00:00:00 2001 From: liuxueli Date: Tue, 10 Nov 2020 09:33:15 +0600 Subject: 支持处理的配置数据包类型 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmake/preInstall.sh | 1 + cmake/preUninstall.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'cmake') diff --git a/cmake/preInstall.sh b/cmake/preInstall.sh index 397e134..17d4919 100644 --- a/cmake/preInstall.sh +++ b/cmake/preInstall.sh @@ -23,4 +23,5 @@ if [[ -z `grep -rn '\[RADIUS_PLUG\]' ${DST}/${CONFILE}` ]];then sed -i '/\[RADIUS_PLUG\]/a\COLLECT_TOPIC=RADIUS-RECORD-LOG' ${DST}/${CONFILE} sed -i '/\[RADIUS_PLUG\]/a\BROKERLIST=127.0.0.1:9092' ${DST}/${CONFILE} sed -i '/\[RADIUS_PLUG\]/a\DEVICE_ID=0' ${DST}/${CONFILE} + sed -i '/\[RADIUS_PLUG\]/a\PACKET_TYPE_FLAG=16' ${DST}/${CONFILE} fi diff --git a/cmake/preUninstall.sh b/cmake/preUninstall.sh index decc015..7cb7119 100644 --- a/cmake/preUninstall.sh +++ b/cmake/preUninstall.sh @@ -8,5 +8,5 @@ if [ $1 == 0 ]; then touch ${DST}/${CONFILE} sed -i '/fw_mail_plug.inf/d' ${DST}/plug/conflist.inf - sed -i '/\[RADIUS_PLUG\]/,+7d' ${DST}/${CONFILE} + sed -i '/\[RADIUS_PLUG\]/,+8d' ${DST}/${CONFILE} fi -- cgit v1.2.3