aboutsummaryrefslogtreecommitdiffstats
path: root/edifyscripting.c
diff options
context:
space:
mode:
authoragrabren <agrabren@gmail.com>2010-12-29 12:15:18 -0600
committerKoushik Dutta <koushd@gmail.com>2010-12-29 23:03:32 -0800
commit1f76a5da6ba2afa0dc72c5d43939e6530af9814b (patch)
treebf93e13d551e3585ed36818a1009ca440a8fa350 /edifyscripting.c
parent7501798fab7f1ec17e0baaa44d611e93c3f2727a (diff)
downloadbootable_recovery-1f76a5da6ba2afa0dc72c5d43939e6530af9814b.zip
bootable_recovery-1f76a5da6ba2afa0dc72c5d43939e6530af9814b.tar.gz
bootable_recovery-1f76a5da6ba2afa0dc72c5d43939e6530af9814b.tar.bz2
Add support for wimax imaging
Change-Id: I2f14918f3ffb37fe94bab469e1d89a9874d89d18
Diffstat (limited to 'edifyscripting.c')
-rw-r--r--edifyscripting.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/edifyscripting.c b/edifyscripting.c
index 3b0d4c9..f7616ef 100644
--- a/edifyscripting.c
+++ b/edifyscripting.c
@@ -174,6 +174,7 @@ Value* RestoreFn(const char* name, State* state, int argc, Expr* argv[]) {
int restoredata = 1;
int restorecache = 1;
int restoresdext = 1;
+ int restorewimax = 1;
int i;
for (i = 1; i < argc; i++)
{
@@ -189,6 +190,8 @@ Value* RestoreFn(const char* name, State* state, int argc, Expr* argv[]) {
restorecache = 0;
else if (strcmp(args2[i], "nosd-ext") == 0)
restoresdext = 0;
+ else if (strcmp(args2[i], "nowimax") == 0)
+ restorewimax = 0;
}
for (i = 0; i < argc; ++i) {
@@ -197,7 +200,7 @@ Value* RestoreFn(const char* name, State* state, int argc, Expr* argv[]) {
free(args);
free(args2);
- if (0 != nandroid_restore(path, restoreboot, restoresystem, restoredata, restorecache, restoresdext)) {
+ if (0 != nandroid_restore(path, restoreboot, restoresystem, restoredata, restorecache, restoresdext, restorewimax)) {
free(path);
return StringValue(strdup(""));
}