summaryrefslogtreecommitdiff
path: root/tools/ak3-core.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/ak3-core.sh')
-rwxr-xr-xtools/ak3-core.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/ak3-core.sh b/tools/ak3-core.sh
index 9822a08..9c325d0 100755
--- a/tools/ak3-core.sh
+++ b/tools/ak3-core.sh
@@ -326,6 +326,9 @@ flash_boot() {
$comp -dc $kernel > kernel;
fi;
$bin/magiskboot hexpatch kernel 736B69705F696E697472616D667300 77616E745F696E697472616D667300;
+ if [ "$(file_getprop $home/anykernel.sh do.systemless)" == 1 ]; then
+ strings kernel | grep -E 'Linux version.*#' > $home/vertmp;
+ fi;
if [ "$comp" ]; then
$bin/magiskboot compress=$comp kernel kernel.$comp;
if [ $? != 0 ]; then