From 72e9554261d2ea4ea883543632350032e789f393 Mon Sep 17 00:00:00 2001 From: bigbiff bigbiff Date: Thu, 29 Aug 2013 21:01:02 -0400 Subject: ignore extra = on install cmd Change-Id: If9a0e6d4c00f6dd79f76c68ed0370a3101211801 --- openrecoveryscript.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'openrecoveryscript.cpp') diff --git a/openrecoveryscript.cpp b/openrecoveryscript.cpp index f6f63dc0e..bb472bf82 100644 --- a/openrecoveryscript.cpp +++ b/openrecoveryscript.cpp @@ -98,6 +98,8 @@ int OpenRecoveryScript::run_script_file(void) { LOGINFO("command is: '%s' and ", command); val_start = script_line; val_start += cindex + 1; + if ((int) *val_start == 51) + val_start++; //get rid of = at the beginning strncpy(value, val_start, line_len - cindex - remove_nl); LOGINFO("value is: '%s'\n", value); } else { -- cgit v1.2.3