summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorosm0sis <osm0sis@outlook.com>2020-01-27 16:25:21 -0400
committerosm0sis <osm0sis@outlook.com>2020-01-27 16:25:21 -0400
commitc35c7ce35813d2c6c76c582bed016ad3aeeb5cf7 (patch)
treea7190308626818900f77bbbc558eb02e0d53c648 /tools
parent03af96a5415cd0b508e542a1ed8c9eb386c322a6 (diff)
AK3+Backend: /postinstall and opposite slot awareness for FlashAfterUpdate addon.d-v2 support
- for A/B OTAs my FlashAfterUpdate addon.d script requires the zip to know about addon.d-v2 and act accordingly - signify support with #FLASHAFTERUPDATEV2 tag in updater-script to pass whitelist check since the majority of zips will not work correctly
Diffstat (limited to 'tools')
-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 9c325d0..b9d238f 100755
--- a/tools/ak3-core.sh
+++ b/tools/ak3-core.sh
@@ -685,6 +685,9 @@ setup_ak() {
test "$slot" && slot=_$slot;
fi;
if [ "$slot" ]; then
+ if [ -d /postinstall/tmp -a ! "$slot_select" ]; then
+ slot_select=inactive;
+ fi;
case $slot_select in
inactive)
case $slot in