Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions customize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ sed -i -e "s|<libs>|$libs|" $MODPATH/service.sh

# Set vars in script
[ -z $KSU ] && KSU=false
[ -z $SERVICED ] && SERVICED=$NVBASE/service.d
amldir=$NVBASE/aml
[ -z $SERVICED ] && SERVICED=/data/adb/service.d
amldir=/data/adb/aml
for i in API amldir KSU MAGISK_VER; do
for j in post-fs-data service uninstall; do
sed -i "s|$i=|$i=$(eval echo \$$i)|" $MODPATH/$j.sh
Expand All @@ -40,7 +40,7 @@ done
mkdir $SERVICED 2>/dev/null
cp -f $MODPATH/uninstall.sh $SERVICED/aml.sh
chmod 0755 $SERVICED/aml.sh
sed -i -e "3a[ -d \"\$moddir/$MODID\" -a ! -f \"\$moddir/$MODID/disable\" ] && exit 0" -e "s|^moddir=.*|moddir=$NVBASE/modules|" $SERVICED/aml.sh
sed -i -e "3a[ -d \"\$moddir/$MODID\" -a ! -f \"\$moddir/$MODID/disable\" ] && exit 0" -e "s|^moddir=.*|moddir=/data/adb/modules|" $SERVICED/aml.sh
echo 'rm -f $0' >> $SERVICED/aml.sh

rm -f $MODPATH/install.zip
rm -f $MODPATH/install.zip