[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/get_errinfo.sh b/rootfs/sbin/get_errinfo.sh
new file mode 100755
index 0000000..5ac323d
--- /dev/null
+++ b/rootfs/sbin/get_errinfo.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+line=`grep "^$1" -n /sbin/app_errmsg.txt | awk -F: '{print $1}'`
+awk -F= -v c=$2 -v n=$line '(NR - n == c) {print $2}' /sbin/app_errmsg.txt