package to customize cm12.1
[projets/cm-custom.git] / META-INF / com / google / android / updater-script
1 # ensure /system is NOT mounted
2 ifelse(is_mounted("/system"), unmount("/system"));
3
4 #unpack our data dir
5 package_extract_dir("cm-data", "/tmp/cm-data");
6 package_extract_file("cm.sh", "/tmp/cm.sh");
7 set_metadata("/tmp/cm.sh", "uid", 0, "gid", 0, "mode", 0755);
8
9 # mount system and run our script
10 mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system", "");
11 run_program("/tmp/cm.sh");
12
13 # finish
14 unmount("/system");
15