Make on_install happen earlier to allow more customization

This commit is contained in:
topjohnwu 2019-03-31 15:37:12 -04:00
parent c577a9525d
commit 91da1cf817

View File

@ -93,6 +93,8 @@ ui_print "******************************"
rm -rf $MODPATH 2>/dev/null
mkdir -p $MODPATH
on_install
# Remove placeholder
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
$LATESTARTSERVICE && cp -af $TMPDIR/service.sh $MODPATH/service.sh
on_install
# Handle replace folders
for TARGET in $REPLACE; do
mktouch $MODPATH$TARGET/.replace