[Feature][YUKUAI_patch]add 18.02 code
Only Configure: No
Affected branch: master
Affected module: unknow
Is it affected on both ZXIC and MTK: only ZXIC
Self-test: Yes
Doc Update: No
Change-Id: I7f71153004f10fc0ea5adfa083866aaeeb1053ac
diff --git a/rootfs/sbin/del_netlog.sh b/rootfs/sbin/del_netlog.sh
new file mode 100755
index 0000000..6dc60d8
--- /dev/null
+++ b/rootfs/sbin/del_netlog.sh
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+#
+#¸Ã½Å±¾ÓÃÓÚÔÚlog³¬¹ýÏÞÖÆºóɾ³ýlogÎļþ
+#
+
+####»ñȡͨÓÃnv±äÁ¿####
+path_conf=`nv get path_conf`
+test_log=`nv get telog_path`
+if [ "$test_log" == "" ]; then
+ test_log=`nv get path_log`"te.log"
+fi
+
+####delete####
+max_size=`nv get comm_logsize`
+file_size=`wc -c $test_log | awk '{print $1}'`
+if [ $file_size -gt $max_size ]; then
+ rm -f $test_log
+ echo "The log has been deleted." >> $test_log
+fi