Backend: add custom kernel banner support

- place text or line-art in a file named "banner" in the root of the zip and it will display
ahead of the kernel.string when flashing
This commit is contained in:
osm0sis committed 2018-02-26 11:18:35 -04:00
1 parent 7391ede9b9
commit b0a2cae9cd
1 file changed
+8
@@ -56,6 +56,14 @@ bb=/tmp/anykernel/tools/busybox;
chmod 755 $bb;
$bb chmod -R 755 /tmp/anykernel/tools /tmp/anykernel/bin;
if [ -f /tmp/anykernel/banner ]; then
while IFS='' read -r line || $bb [[ -n "$line" ]]; do
ui_print "$line";
done < /tmp/anykernel/banner;
ui_print " ";
ui_print " ";
fi;
ui_print "$(file_getprop /tmp/anykernel/anykernel.sh kernel.string)";
ui_print " ";
ui_print "AnyKernel2 by osm0sis @ xda-developers";