summaryrefslogtreecommitdiff
path: root/anykernel.sh
diff options
context:
space:
mode:
authorosm0sis <osm0sis@outlook.com>2014-10-14 16:37:48 -0300
committerosm0sis <osm0sis@outlook.com>2014-10-14 16:37:48 -0300
commitbcfd2e0ff24e8740b36dfdda9221b87c7d7c0dfd (patch)
tree838014a7743bcb432f48432db11b8c356904a673 /anykernel.sh
parent7ffb3bb1aa0ad78dd9f8a897b69fd89e41178553 (diff)
AnyKernel 2.0: more new features
- add support for up to 5 device.name properties for variants - add support for custom dtb swapping (falls back to included if none found in zip root) - fix ramdisk extraction when there is none in the zip (ie. nothing to be added)
Diffstat (limited to 'anykernel.sh')
-rwxr-xr-xanykernel.sh10
1 files changed, 7 insertions, 3 deletions
diff --git a/anykernel.sh b/anykernel.sh
index 3769590..d65ca13 100755
--- a/anykernel.sh
+++ b/anykernel.sh
@@ -11,6 +11,8 @@ do.cleanup=1
device.name1=maguro
device.name2=toro
device.name3=toroplus
+device.name4=
+device.name5=
# shell variables
block=/dev/block/platform/omap/omap_hsmmc.0/by-name/boot;
@@ -25,9 +27,9 @@ bin=/tmp/anykernel/tools;
split_img=/tmp/anykernel/split_img;
patch=/tmp/anykernel/patch;
-cd $ramdisk;
chmod -R 755 $bin;
-mkdir -p $split_img;
+mkdir -p $ramdisk $split_img;
+cd $ramdisk;
OUTFD=`ps | grep -v "grep" | grep -oE "update(.*)" | cut -d" " -f3`;
ui_print() { echo "ui_print $1" >&$OUTFD; echo "ui_print" >&$OUTFD; }
@@ -59,7 +61,9 @@ write_boot() {
secondoff=`cat *-secondoff`;
secondoff="--second_offset $secondoff";
fi;
- if [ -f *-dtb ]; then
+ if [ -f /tmp/anykernel/dtb ]; then
+ dtb="--dt /tmp/anykernel/dtb";
+ elif [ -f *-dtb ]; then
dtb=`ls *-dtb`;
dtb="--dt $split_img/$dtb";
fi;