From 1c09b3642f31b2aa149e6a55229b50cde4f68c4e Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Wed, 27 Mar 2019 22:20:39 -0400 Subject: [PATCH] Properly setup update flag in module installer --- scripts/module_installer.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/scripts/module_installer.sh b/scripts/module_installer.sh index c21659057..614871c03 100644 --- a/scripts/module_installer.sh +++ b/scripts/module_installer.sh @@ -113,8 +113,13 @@ $PROPFILE && cp -af $TMPDIR/system.prop $MODPATH/system.prop cp -af $TMPDIR/module.prop $MODPATH/module.prop if $BOOTMODE; then # Update info for Magisk Manager - mktouch $NVBASE/modules/$MODID/update - cp -af $TMPDIR/module.prop $NVBASE/modules/$MODID/module.prop + if imageless_magisk; then + mktouch $NVBASE/modules/$MODID/update + cp -af $TMPDIR/module.prop $NVBASE/modules/$MODID/module.prop + else + mktouch /sbin/.magisk/img/$MODID/update + cp -af $TMPDIR/module.prop /sbin/.magisk/img/$MODID/module.prop + fi fi # post-fs-data mode scripts