2 Commits

Author SHA1 Message Date
8416d85fab Add some support to image size
- Previously, when running, mkboot recovery.img recovery, the second argument can't be stat when attempting to determine it's original size.
- I included a file check for the path to properly handle this situation which also allows the ability to unpack an image from a separate directory rather than having the image inside the project directory.
- Following commands have been tested to work for the second command argument:

mkboot /sdcard/recovery.img recoveryfolder

mkboot recovery.img recoveryfolder

mkboot ./recovery.img recoveryfolder

mkboot ~/sdcard/recovery.img recoveryfolder
2015-09-07 10:44:35 -04:00
ModdingMyMind
d3a0d9d963 Manipulate shebang
- This project will work on linux. Confirmed working on Ubuntu 15.04.

I have added a wrapper script which manipulates the limited usage of a shebang that allows the real mkboot script to be executed by the bash binary from within the project directory.

This eliminates the previous requirement of having to place bash at /system/xbin.
2015-09-07 00:52:15 -04:00