Merge pull request #4 from airend/AnyKernel2
anykernel.sh: Add a simple substring matching function
This commit is contained in:
commit
9837f61836
1 file changed
+5
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user