summaryrefslogtreecommitdiffstats
path: root/releasetools
diff options
context:
space:
mode:
Diffstat (limited to 'releasetools')
-rw-r--r--releasetools/extensions/releasetools.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/releasetools/extensions/releasetools.py b/releasetools/extensions/releasetools.py
new file mode 100644
index 0000000..b64b999
--- /dev/null
+++ b/releasetools/extensions/releasetools.py
@@ -0,0 +1,10 @@
+import common
+import struct
+
+def FullOTA_PostValidate(info):
+ # run e2fsck
+ info.script.AppendExtra('run_program("/sbin/e2fsck", "-fy", "/dev/block/mmcblk0p9");');
+ # resize2fs: run and delete
+ info.script.AppendExtra('run_program("/tmp/install/bin/resize2fs_static", "/dev/block/mmcblk0p9");');
+ # run e2fsck
+ info.script.AppendExtra('run_program("/sbin/e2fsck", "-fy", "/dev/block/mmcblk0p9");');