🌴 Sync 2026-03-05 23:51:42

This commit is contained in:
github-actions[bot] committed 2026-03-05 23:51:42 +08:00
1 parent 97c049ed0a
commit 0acff03804
14253 files changed
+3893239

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
#!/bin/sh
[ -n "$(uci -q get packagesync.config)" ] || sed -i "s|^config packagesync|config packagesync 'config'|" /etc/config/packagesync
download_url="$(uci -q get packagesync.config.download_url)"
rsync_url="$(uci -q get packagesync.config.rsync_url)"
[ -n "$download_url" ] || uci set packagesync.config.download_url='https://downloads.openwrt.org'
[ -n "$rsync_url" ] || uci set packagesync.config.rsync_url='rsync://rsync.openwrt.org/downloads'
# merging option target & option subtarget
for sid in $(uci -q show packagesync | sed -n 's|^.*\.\(@release[[0-9]*]\).subtarget=.*|\1|p'); do
uci set packagesync.$sid.target="$(uci -q get packagesync.$sid.target)/$(uci -q get packagesync.$sid.subtarget)"
uci delete packagesync.$sid.subtarget
done
[ -z "$(uci changes packagesync)" ] || uci commit packagesync