Merge pull request #4 from airend/AnyKernel2

anykernel.sh: Add a simple substring matching function
This commit is contained in:
Chris Renshaw committed 2016-03-16 13:54:07 -03:00
commit 9837f61836
1 file changed
+5
+5
View File
@@ -50,6 +50,11 @@ dump_boot() {
cp -af /tmp/anykernel/rdtmp/* $ramdisk;
}
# contains <string> <substring>
contains() {
if test "${1#*$2}" != "$1"; then return 0; else return 1; fi;
}
# repack ramdisk then build and write image
write_boot() {
cd $split_img;