diff options
author | Chris Renshaw <osm0sis@outlook.com> | 2016-03-16 13:54:07 -0300 |
---|---|---|
committer | Chris Renshaw <osm0sis@outlook.com> | 2016-03-16 13:54:07 -0300 |
commit | 9837f6183674e9d1d1eecbfae5c0e6fd283598f8 (patch) | |
tree | 64cb6e9a9c3f715cda6c7be60eef10703f4649fa | |
parent | f0bc44a8db56fdc4e1996d66ac9be927f746da61 (diff) | |
parent | 756479498ba8ab34b1821c35719e9762bd55bcad (diff) |
Merge pull request #4 from airend/AnyKernel2
anykernel.sh: Add a simple substring matching function
-rwxr-xr-x | anykernel.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/anykernel.sh b/anykernel.sh index 7e012b7..86d9ff9 100755 --- a/anykernel.sh +++ b/anykernel.sh @@ -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; |