diff --git a/customize.sh b/customize.sh index 8d309c8..ff952c9 100755 --- a/customize.sh +++ b/customize.sh @@ -28,8 +28,8 @@ sed -i -e "s||$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 @@ -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 \ No newline at end of file +rm -f $MODPATH/install.zip