mirror of
https://github.com/roacn/openwrt-packages.git
synced 2025-01-08 11:57:31 +08:00
💐 Sync 2022-03-25 09:44
This commit is contained in:
parent
a826830a76
commit
16686a6149
@ -18,8 +18,10 @@ run_autoupdate()
|
||||
sed -i '/AutoUpdate/d' /etc/crontabs/root >/dev/null 2>&1
|
||||
fi
|
||||
if [ -f /bin/AutoUpdate.sh ] && [ -f /bin/openwrt_info ];then
|
||||
custom_github_url="$(uci get autoupdate.@login[0].github)"
|
||||
current_github_url="$(grep Github= /bin/openwrt_info | cut -c8-100)"
|
||||
cus_url="$(uci get autoupdate.@login[0].github)"
|
||||
ApAuthor="${cus_url%.git}"
|
||||
custom_github_url="${ApAuthor##*com/}"
|
||||
current_github_url="$(grep Warehouse= /bin/openwrt_info | cut -d "=" -f2)"
|
||||
[[ -n "${custom_github_url}" ]] && {
|
||||
[[ "${custom_github_url}" != "${current_github_url}" ]] && {
|
||||
sed -i "s?${current_github_url}?${custom_github_url}?g" /bin/openwrt_info
|
||||
|
@ -123,3 +123,5 @@ ff.dorado.sdo.com
|
||||
*.mcdn.bilivideo.cn
|
||||
#Disney Plus
|
||||
+.media.dssott.com
|
||||
#shark007 Codecs
|
||||
shark007.net
|
||||
|
Loading…
Reference in New Issue
Block a user