From 469243e53689b6f312d20813444dc00d83528758 Mon Sep 17 00:00:00 2001 From: Doug Zongker Date: Tue, 12 Apr 2011 09:28:10 -0700 Subject: save a last_install file with the result of the last package install attempt When installing a package, create /cache/recovery/last_install, which contains the filename of the package and a 1 or 0 for success or failure. Also, don't mount ext4 and vfat filesystems as read-only (on devices where /cache is ext4, we need it to be read-write). Change-Id: I0cf2a1921bbd65e06343aa74e2006577fac77c2c --- recovery.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'recovery.c') diff --git a/recovery.c b/recovery.c index fd7ce42f1..3a412d5c5 100644 --- a/recovery.c +++ b/recovery.c @@ -120,7 +120,7 @@ static const int MAX_ARG_LENGTH = 4096; static const int MAX_ARGS = 100; // open a given path, mounting partitions as necessary -static FILE* +FILE* fopen_path(const char *path, const char *mode) { if (ensure_path_mounted(path) != 0) { LOGE("Can't mount %s\n", path); -- cgit v1.2.3