mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-11 18:54:30 +00:00
Make on_install happen earlier to allow more customization
This commit is contained in:
parent
c577a9525d
commit
91da1cf817
@ -93,6 +93,8 @@ ui_print "******************************"
|
|||||||
rm -rf $MODPATH 2>/dev/null
|
rm -rf $MODPATH 2>/dev/null
|
||||||
mkdir -p $MODPATH
|
mkdir -p $MODPATH
|
||||||
|
|
||||||
|
on_install
|
||||||
|
|
||||||
# Remove placeholder
|
# Remove placeholder
|
||||||
rm -f $MODPATH/system/placeholder 2>/dev/null
|
rm -f $MODPATH/system/placeholder 2>/dev/null
|
||||||
|
|
||||||
@ -128,8 +130,6 @@ $POSTFSDATA && cp -af $TMPDIR/post-fs-data.sh $MODPATH/post-fs-data.sh
|
|||||||
# service mode scripts
|
# service mode scripts
|
||||||
$LATESTARTSERVICE && cp -af $TMPDIR/service.sh $MODPATH/service.sh
|
$LATESTARTSERVICE && cp -af $TMPDIR/service.sh $MODPATH/service.sh
|
||||||
|
|
||||||
on_install
|
|
||||||
|
|
||||||
# Handle replace folders
|
# Handle replace folders
|
||||||
for TARGET in $REPLACE; do
|
for TARGET in $REPLACE; do
|
||||||
mktouch $MODPATH$TARGET/.replace
|
mktouch $MODPATH$TARGET/.replace
|
||||||
|
Loading…
Reference in New Issue
Block a user