AK3+Backend: pass AKHOME via export

This commit is contained in:
osm0sis committed 2023-05-03 15:45:34 -03:00
1 parent dee204c197
commit ba82924dab
3 files changed
+4 -3

No files matched your search

+2 -2
View File
@@ -14,7 +14,7 @@ $BOOTMODE || DIR=$(dirname "$ZIPFILE");
[ $DIR == "/sideload" ] && DIR=/tmp;
[ -d /postinstall/tmp ] && POSTINSTALL=/postinstall;
[ "$AKHOME" ] || AKHOME=$POSTINSTALL/tmp/anykernel;
[ "$AKHOME" ] || export AKHOME=$POSTINSTALL/tmp/anykernel;
[ "$ANDROID_ROOT" ] || ANDROID_ROOT=/system;
ui_print() {
@@ -488,7 +488,7 @@ ui_print "Installing...";
# hack to maintain support for anykernel.sh files that weren't updated correctly along with the AK core
CORE=$(grep -oE 'ak.*core.sh' anykernel.sh);
[ -f tools/$CORE ] || ln -s $AKHOME/tools/ak*-core.sh $AKHOME/tools/$CORE;
home=$AKHOME ash anykernel.sh;
ash anykernel.sh;
if [ $? != 0 ]; then
abort;
fi;
+1 -1
View File
@@ -3,4 +3,4 @@
# Dummy file; update-binary is a shell script (DO NOT CHANGE)
#
#
# AK_BASE_VERSION=20230423
# AK_BASE_VERSION=20230503