AK2: add file_getprop

- was only available in the update-binary, so allow in anykernel.sh as well, for use with checking /system/build.prop, /default.prop, $ramdisk/default.prop, etc.
This commit is contained in:
osm0sis committed 2018-03-07 15:15:41 -04:00
1 parent 07cc7c31ce
commit 865564032d
1 file changed
+3
+3
View File
@@ -17,6 +17,9 @@ ui_print() { echo -e "ui_print $1\nui_print" > $OUTFD; }
# contains <string> <substring>
contains() { test "${1#*$2}" != "$1" && return 0 || return 1; }
# file_getprop <file> <property>
file_getprop() { grep "^$2=" "$1" | cut -d= -f2; }
# reset anykernel directory
reset_ak() {
rm -rf $ramdisk $split_img /tmp/anykernel/rdtmp /tmp/anykernel/boot.img /tmp/anykernel/*-new.*;