Advertisement
lovejoy777

bottom of common.py

Nov 27th, 2014
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. # The install script location moved from /system/etc to /system/bin
  2. # in the L release. Parse the init.rc file to find out where the
  3. # target-files expects it to be, and put it there.
  4. sh_location = "etc/install-recovery.sh"
  5. # try:
  6. # with open(os.path.join(input_dir, "BOOT", "RAMDISK", "init.rc")) as f:
  7. # for line in f:
  8. # m = re.match("^service flash_recovery /system/(\S+)\s*$", line)
  9. # if m:
  10. # sh_location = m.group(1)
  11. # print "putting script in", sh_location
  12. # break
  13. # except (OSError, IOError), e:
  14. # print "failed to read init.rc: %s" % (e,)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement