[Feature][T106][task-view-523]Remove the statements which output to the log
Only Configure :No
Affected branch: master
Affected module: test_log
Is it affected on both ZXIC and MTK:only ZXIC
Self-test: Yes
Doc Update: No
Change-Id: I074f7eca2e6185c6a3b9f4bca8ddda5f272e1e1c
diff --git a/cap/zx297520v3/zxic_code/zxic_source/zxic_app_open/platform/Script/scripts/internet.sh b/cap/zx297520v3/zxic_code/zxic_source/zxic_app_open/platform/Script/scripts/internet.sh
index a674513..0414ee5 100755
--- a/cap/zx297520v3/zxic_code/zxic_source/zxic_app_open/platform/Script/scripts/internet.sh
+++ b/cap/zx297520v3/zxic_code/zxic_source/zxic_app_open/platform/Script/scripts/internet.sh
@@ -6,8 +6,8 @@
#
path_sh=`nv get path_sh`
. $path_sh/global.sh
-echo "Info: internet.sh start" > $test_log
-echo "Info: `date +%m-%d_%H:%M:%S`" >> $test_log
+#echo "Info: internet.sh start" > $test_log //SIHAI don`t need this log
+#echo "Info: `date +%m-%d_%H:%M:%S`" >> $test_log //SIHAI don`t need this log
echo 7200 > /proc/sys/net/netfilter/nf_conntrack_tcp_timeout_established
@@ -25,14 +25,14 @@
#½«¿ìËÙת·¢¼¶±ð´«¸øÄÚºË
fastnat_level=`nv get fastnat_level`
-echo "Info: set fastnat_level£º$fastnat_level" >> $test_log
+#echo "Info: set fastnat_level£º$fastnat_level" >> $test_log //SIHAI don`t need this log
echo $fastnat_level > /proc/net/fastnat_level
fastbr_level=`nv get fastbr_level`
-echo "Info: set fastbr_level: $fastbr_level" >> $test_log
+#echo "Info: set fastbr_level: $fastbr_level" >> $test_log //SIHAI don`t need this log
echo $fastbr_level > /proc/net/fastbr_level
#½«²»Ö§³Ö¿ìËÙת·¢µÄÐÒé¶Ë¿ÚºÅ´«¸øÄÚºË
nofast_port=`nv get nofast_port`
-echo "Info: set nofast_port£º$nofast_port" >> $test_log
+#echo "Info: set nofast_port£º$nofast_port" >> $test_log //SIHAI don`t need this log
echo $nofast_port > /proc/net/nofast_port
diff --git a/cap/zx297520v3/zxic_code/zxic_source/zxic_app_open/platform/Script/scripts/lan.sh b/cap/zx297520v3/zxic_code/zxic_source/zxic_app_open/platform/Script/scripts/lan.sh
index 2d6fa29..8d90fdf 100755
--- a/cap/zx297520v3/zxic_code/zxic_source/zxic_app_open/platform/Script/scripts/lan.sh
+++ b/cap/zx297520v3/zxic_code/zxic_source/zxic_app_open/platform/Script/scripts/lan.sh
@@ -14,29 +14,30 @@
echo "ifconfig $br_name start...................."
ifconfig $br_name down
brctl delbr $br_name
- brctl addbr $br_name 2>>$test_log
- if [ $? -ne 0 ];then
- echo "Error: brctl addbr $br_name failed." >> $test_log
- fi
- brctl setfd $br_name 0.1 2>>$test_log
- if [ $? -ne 0 ];then
- echo "Error: brctl setfd $br_name 0.1 failed." >> $test_log
- fi
- ifconfig lo up 2>>$test_log
- if [ $? -ne 0 ];then
- echo "Error: ifconfig lo up failed." >> $test_log
- fi
- ifconfig $br_name up 2>>$test_log
- if [ $? -ne 0 ];then
- echo "Error: ifconfig $br_name up failed." >> $test_log
- fi
-
+ brctl addbr $br_name
+ #add Notes for SIHAI don`t need this log by cz.li on 2024/10/18
+ #if [ $? -ne 0 ];then
+ #echo "Error: brctl addbr $br_name failed." >> $test_log
+ #fi
+ brctl setfd $br_name 0.1
+ #if [ $? -ne 0 ];then
+ #echo "Error: brctl setfd $br_name 0.1 failed." >> $test_log
+ #fi
+ ifconfig lo up
+ #if [ $? -ne 0 ];then
+ #echo "Error: ifconfig lo up failed." >> $test_log
+ #fi
+ ifconfig $br_name up
+ #if [ $? -ne 0 ];then
+ #echo "Error: ifconfig $br_name up failed." >> $test_log
+ #fi
+ #add Notes for SIHAI don`t need this log by cz.li on 2024/10/18
#´ò¿ªÍøÇŵØÖ·¸Ä±ä֪ͨµÄ¿ª¹Ø
echo 1 > /proc/sys/net/ipv4/conf/$br_name/arp_notify
prj=`cat /sys/gmac/gmacconfig/type`
if [ "$prj" == "cpe" ]; then
- ifconfig eth0 up 2>>$test_log
- brctl addif $br_name eth0 2>>$test_log
+ ifconfig eth0 up
+ brctl addif $br_name eth0
fi
br_node=`nv get br_node_cap`
@@ -47,10 +48,12 @@
do
ifconfig $device up
- brctl addif $br_name $device 2>>$test_log
- if [ $? -ne 0 ];then
- echo "Error: brctl addif $br_name $device failed." >> $test_log
- fi
+ brctl addif $br_name $device
+ #add Notes for SIHAI don`t need this log by cz.li on 2024/10/18
+ #if [ $? -ne 0 ];then
+ #echo "Error: brctl addif $br_name $device failed." >> $test_log
+ #fi
+ #add Notes for SIHAI don`t need this log by cz.li on 2024/10/18
done
IFS=$IFS_OLD
}
@@ -59,18 +62,22 @@
{
ip=`nv get lan_ipaddr_cap`
nm=`nv get lan_netmask_cap`
- ifconfig $lan_if_cap $ip netmask $nm 2>>$test_log
- if [ $? -ne 0 ];then
- echo "Error: ifconfig $lan_if_cap $ip netmask $nm failed." >> $test_log
- fi
+ ifconfig $lan_if_cap $ip netmask $nm
+ #add Notes for SIHAI don`t need this log by cz.li on 2024/10/18
+ #if [ $? -ne 0 ];then
+ #echo "Error: ifconfig $lan_if_cap $ip netmask $nm failed." >> $test_log
+ #fi
+ #add Notes for SIHAI don`t need this log by cz.li on 2024/10/18
webv6_enable=`nv get webv6_enable`
ipv6=`nv get lan_ipv6addr_cap`
if [ "x$webv6_enable" == "x1" ]; then
ifconfig $lan_if_cap $ipv6/64
- if [ $? -ne 0 ];then
- echo "Error: ifconfig $lan_if_cap $ipv6 failed." >> $test_log
- fi
+ #add Notes for SIHAI don`t need this log by cz.li on 2024/10/18
+ #if [ $? -ne 0 ];then
+ #echo "Error: ifconfig $lan_if_cap $ipv6 failed." >> $test_log
+ #fi
+ #add Notes for SIHAI don`t need this log by cz.li on 2024/10/18
fi
}
@@ -81,7 +88,7 @@
exit 0
fi
- echo "Info: lan.sh start" >> $test_log
+ #echo "Info: lan.sh start" >> $test_log //SIHAI don`t need this log
if [ "x$lan_enable" == "x1" ]; then
br_set
@@ -100,7 +107,7 @@
dhcp=`nv get dhcpEnabled`
if [ "$dhcp" == "1" ]; then
- echo "Info: config-udhcpd.sh lan -r 1 start" >> $test_log
+ #echo "Info: config-udhcpd.sh lan -r 1 start" >> $test_log //SIHAI don`t need this log
. $path_sh/config-udhcpd.sh "lan" -r 1
fi
fi
diff --git a/cap/zx297520v3/zxic_code/zxic_source/zxic_app_open/platform/Script/scripts/user-config-udhcpd.sh b/cap/zx297520v3/zxic_code/zxic_source/zxic_app_open/platform/Script/scripts/user-config-udhcpd.sh
index dd03b71..8ea91a9 100755
--- a/cap/zx297520v3/zxic_code/zxic_source/zxic_app_open/platform/Script/scripts/user-config-udhcpd.sh
+++ b/cap/zx297520v3/zxic_code/zxic_source/zxic_app_open/platform/Script/scripts/user-config-udhcpd.sh
@@ -2,7 +2,7 @@
path_sh=`nv get path_sh`
. $path_sh/global.sh
-echo "Info: user-config-udhcpd.sh start" >> $test_log
+#echo "Info: user-config-udhcpd.sh start" >> $test_log //SIHAI don`t need this log
lan_enable=`nv get LanEnable`
if [ "-$lan_enable" == "-0" ]; then
@@ -56,10 +56,10 @@
sh $path_sh/config-udhcpd.sh "lan" -i $lan_if
sh $path_sh/config-udhcpd.sh "lan" -m $mask
sh $path_sh/config-udhcpd.sh "lan" -d $dns
-echo "Info: config-udhcpd.sh lan -d $dns" >> $test_log
+#echo "Info: config-udhcpd.sh lan -d $dns" >> $test_log //SIHAI don`t need this log
if [ "-$gw" != "-" ]; then
sh $path_sh/config-udhcpd.sh "lan" -g $gw
- echo "Info: config-udhcpd.sh lan -g $gw" >> $test_log
+ #echo "Info: config-udhcpd.sh lan -g $gw" >> $test_log //SIHAI don`t need this log
fi
if [ "-$lease" != "-" ]; then
sh $path_sh/config-udhcpd.sh "lan" -t $lease