Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- my_if() {
- if $@; then
- ui_print2 "OK";
- else
- ui_print2 "error";
- abort; return 1;
- fi;
- }
- abort() {
- rm -rf /tmp/AIK-mobile;
- ui_print "---------------------------------------";
- ui_print "Me no like ... aborting";
- ui_print " ";
- ui_print "!!nothing was changed!!";
- ui_print "=======================================";
- exit 1;
- }
- ui_print1 "Extracting files...";
- my_if mkdir -p /tmp/AIK-mobile && cd /tmp/AIK-mobile && unzip -o "$ZIP" && cd /tmp/AIK-mobile/AIK;
- ui_print1 "Pulling current kernel...";
- my_if dd if=$bootP of=/tmp/AIK-mobile/AIK/oldboot.img;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement