Properly setup update flag in module installer

This commit is contained in:
topjohnwu 2019-03-27 22:20:39 -04:00
parent d08b1a6639
commit 1c09b3642f

View File

@ -113,8 +113,13 @@ $PROPFILE && cp -af $TMPDIR/system.prop $MODPATH/system.prop
cp -af $TMPDIR/module.prop $MODPATH/module.prop cp -af $TMPDIR/module.prop $MODPATH/module.prop
if $BOOTMODE; then if $BOOTMODE; then
# Update info for Magisk Manager # Update info for Magisk Manager
mktouch $NVBASE/modules/$MODID/update if imageless_magisk; then
cp -af $TMPDIR/module.prop $NVBASE/modules/$MODID/module.prop 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 fi
# post-fs-data mode scripts # post-fs-data mode scripts