add prj_mifi_min_aic8800dw
Change-Id: I8dfb5282d9f51358e08bb1e4f90ca912c9d15295
diff --git a/allbins/zx297520v3/prj_mifi/scripts_linux/bin/readini.sh b/allbins/zx297520v3/prj_mifi/scripts_linux/bin/readini.sh
new file mode 100755
index 0000000..7e793e5
--- /dev/null
+++ b/allbins/zx297520v3/prj_mifi/scripts_linux/bin/readini.sh
@@ -0,0 +1,47 @@
+@echo off
+
+set item=
+set filepath=
+set section=
+setlocal EnableDelayedExpansion
+if not "%~1"=="" (
+ set filepath=%1
+) else goto :file_err
+if not exist %filepath% goto :file_err
+if not "%~2"=="" (
+ set section=%2
+ if "!section:~0,1!"==""^" set section=!section:~1!
+ if "!section:~-1!"==""^" set section=!section:~0,-1!
+) else goto :section
+if not "%~3"=="" (
+ set item=%3
+ if "!item:~0,1!"==""^" set item=!item:~1!
+ if "!item:~-1!"==""^" set item=!item:~0,-1!
+)
+setlocal disableDelayedExpansion
+set ×ֶοªÊ¼=
+for /f "usebackq delims=[]" %%i in (`find /i "%section%" /n %filepath%`) do set ×ֶοªÊ¼=%%i
+for /f "usebackq tokens=1* delims== skip=%×ֶοªÊ¼%" %%i in (`type %filepath%`) do (
+ set a=%%i
+ setlocal EnableDelayedExpansion
+ if "!a:~0,1!"=="[" goto :eof
+ if not "!a:~0,1!"==";" (
+ setlocal disableDelayedExpansion
+ for /f "delims=;" %%x in ("%%i=%%j") do (
+ if not DEFINED item (echo %%x) else (if /i "%%i"=="%item%" echo %%x)
+ )
+ )
+)
+goto :eof
+
+:section
+setlocal disableDelayedExpansion
+for /f "usebackq delims== skip=2" %%i in (`find /i "[" %filepath%`) do echo %%i
+goto :eof
+
+:file_err
+setlocal disableDelayedExpansion
+echo.
+echo %1ÎļþδÕÒµ½»òδÊäÈë!
+echo.
+goto :eof
\ No newline at end of file