SHARE
TWEET

Untitled

a guest Mar 19th, 2015 198 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ui_print("");
  2. ui_print("========================================");
  3. ui_print("Hybris Installer");
  4. ui_print("========================================");
  5. ui_print("      Device: bacon");
  6. ui_print("     Version: 1.1.1.27");
  7. ui_print("       Image: sailfishos-bacon-release-1.1.1.27-alpha1-201503182354.tar.bz2");
  8. ui_print("        Size: 253M");
  9. ui_print("  Partitions:");
  10. ui_print("    /boot -> /dev/block/platform/msm_sdcc.1/by-name/boot");
  11. ui_print("    /data -> /dev/block/platform/msm_sdcc.1/by-name/userdata");
  12. ui_print("========================================");
  13. ui_print("");
  14.  
  15. assert(getprop("ro.product.device") == "bacon" || getprop("ro.build.product") == "bacon" || getprop("ro.cm.device") == "bacon");
  16.  
  17. ui_print("Device check succeeded, mounting filesystems ...");
  18. mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/userdata", "/data");
  19.  
  20. ui_print("Copying filesystem archive ...");
  21. package_extract_file("sailfishos-bacon-release-1.1.1.27-alpha1-201503182354.tar.bz2", "/data/sailfishos-rootfs.tar.bz2");
  22. ui_print("Copying installation script ...");
  23. package_extract_file("updater-unpack.sh", "/tmp/updater-unpack.sh");
  24.  
  25. ui_print("Running installation script ...");
  26. set_metadata("/tmp/updater-unpack.sh", "uid", 0, "gid", 0, "mode", 00755);
  27. run_program("/tmp/updater-unpack.sh");
  28.  
  29. ui_print("Flashing hybris-boot.img ...");
  30. package_extract_file("hybris-boot.img", "/dev/block/platform/msm_sdcc.1/by-name/boot");
  31.  
  32. ui_print("Unmounting filesystems ...");
  33. unmount("/data");
  34.  
  35. ui_print("Done!");
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top