From 36e77982a2ed43b813ed8d04a55cbf5f78994eac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?top=E5=A4=A7=E4=BD=AC?= <80568282+410154425@users.noreply.github.com> Date: Wed, 6 Sep 2023 11:40:11 +0800 Subject: [PATCH] Add files via upload --- customize.sh | 1 + service.sh | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/customize.sh b/customize.sh index 233f942..7b08259 100644 --- a/customize.sh +++ b/customize.sh @@ -1,6 +1,7 @@ ui_print " -------------------------- " ui_print " ------ 安装中,请稍等 ------ " sleep 1 +cp "$MODPATH/module.prop" "$MODPATH/t_module" if [ "$IS64BIT" = 'true' ]; then cp "$MODPATH/linux_arm64/AdGuardHome" "$MODPATH/AdGuardHome" > /dev/null 2>&1 ui_print " -------------------------- " diff --git a/service.sh b/service.sh index c696d34..cff4ede 100644 --- a/service.sh +++ b/service.sh @@ -21,6 +21,10 @@ echo "am start -n com.tencent.mm/.plugin.webview.ui.tools.WebViewUI -d https://p echo "echo \"\"" >> "$MODDIR/.投币捐赠.sh" echo "echo \"正在跳转AdHome模块捐赠页面,请稍等。。。\"" >> "$MODDIR/.投币捐赠.sh" chmod 0755 "$MODDIR/.投币捐赠.sh" +if [ -f "$MODDIR/t_module" -a "$(cat "$MODDIR/module.prop" | egrep '^#by topdalao' | sed -n '$p')" != '#by topdalao' ]; then + cp "$MODDIR/t_module" "$MODDIR/module.prop" + chmod 0644 "$MODDIR/module.prop" +fi "$MODDIR/AdGuardHome" > /dev/null 2>&1 & up=1 while true ; do