AK2: simplify new contains(), adjust placement, and update documentation
This commit is contained in:
1 parent
a5bb583af5
commit
ea57ded2c2
2 files changed
+6
-6
No files matched your search
+5
-5
@@ -31,8 +31,13 @@ chmod -R 755 $bin;
|
||||
mkdir -p $ramdisk $split_img;
|
||||
|
||||
OUTFD=/proc/self/fd/$1;
|
||||
|
||||
# ui_print <text>
|
||||
ui_print() { echo -e "ui_print $1\nui_print" > $OUTFD; }
|
||||
|
||||
# contains <string> <substring>
|
||||
contains() { test "${1#*$2}" != "$1" && return 0 || return 1; }
|
||||
|
||||
# dump boot and extract ramdisk
|
||||
dump_boot() {
|
||||
dd if=$block of=/tmp/anykernel/boot.img;
|
||||
@@ -50,11 +55,6 @@ 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