🎁 Sync 2026-10-09 12:18:17

This commit is contained in:
github-actions[bot] committed 2026-10-09 12:18:17 +08:00
1 parent c43003617d
commit 1ee3366de6
139 files changed
+1934 -500

No files matched your search

@@ -0,0 +1,18 @@
#!/bin/sh
# r12: r11 shipped the new backup command but conffile preservation kept
# the r9 '@download:/cgi-backup' value on upgrading devices. Rewrite it to
# the sysupgrade -b form so those users get a working Download Config
# Backup button without manual uci set.
[ -f /etc/config/quickactions ] || exit 0
cur=$(uci -q get quickactions.backup.command)
case "$cur" in
*'@download:'*|*'cgi-backup'*)
uci set 'quickactions.backup.command=/sbin/sysupgrade -b /tmp/backup-$(date +%Y%m%d-%H%M%S).tar.gz && ls -la /tmp/backup-*.tar.gz | tail -1'
uci commit quickactions
logger -t quickactions "backup.command migrated off legacy @download: endpoint"
;;
esac
exit 0
@@ -0,0 +1,37 @@
#!/bin/sh
# r12: guestwifi + network shipped with /12 (255.240.0.0) from r9 through
# r11. Conffile preservation kept the old value across upgrades, so the new
# JS default in r12 never reaches existing users. Force /24 on any guest
# still carrying /12. Idempotent; runs once then is deleted by uci-defaults.
[ -f /etc/config/guestwifi ] || exit 0
changed=0
# guestwifi.@guest[*].netmask
for sec in $(uci show guestwifi 2>/dev/null \
| sed -n "s/^guestwifi\.\(@guest\[[0-9]*\]\)\.netmask='255\.240\.0\.0'$/\1/p"); do
uci set "guestwifi.${sec}.netmask=255.255.255.0"
changed=1
done
# network.guest, network.guest_2, ... (any iface whose name starts with guest)
for iface in $(uci show network 2>/dev/null \
| sed -n "s/^network\.\([A-Za-z0-9_]*\)\.netmask='255\.240\.0\.0'$/\1/p"); do
case "$iface" in
guest*)
uci set "network.${iface}.netmask=255.255.255.0"
changed=1
;;
esac
done
if [ "$changed" = "1" ]; then
uci commit guestwifi
uci commit network
/etc/init.d/network reload
/etc/init.d/firewall reload
logger -t quickactions "guestwifi netmask migrated /12 -> /24"
fi
exit 0