💋 Sync 2026-11-02 01:02:56

This commit is contained in:
github-actions[bot] committed 2026-11-02 01:02:56 +08:00
1 parent d97dc35e3d
commit 2f941f0ffb
48 files changed
+4891 -1002

No files matched your search

@@ -5,6 +5,9 @@ status="$2"
manager="$3"
force="$4"
acl_file="/usr/share/rpcd/acl.d/luci-app-${CONFIG}.json"
acl_md5_before=$(md5sum "$acl_file" 2>/dev/null | awk '{print $1}')
[ "$manager" = apk ] && extension=apk || extension=ipk
set -- "$dir/luci-app-${CONFIG}.${extension}"
for package in "$dir"/luci-i18n-${CONFIG}-*.${extension}; do
@@ -26,7 +29,10 @@ fi
rm -rf "$dir"
if [ "$result" = 0 ]; then
rm -f "/tmp/etc/${CONFIG}_tmp/${CONFIG}_version" /tmp/luci-indexcache /tmp/luci-indexcache.*
if [ -x /etc/init.d/rpcd ]; then
acl_md5_after=$(md5sum "$acl_file" 2>/dev/null | awk '{print $1}')
# rpcd only reads ACL definitions at startup. Restart it only when the ACL
# file actually changed, so in-place updates no longer drop the web session.
if [ "$acl_md5_before" != "$acl_md5_after" ] && [ -x /etc/init.d/rpcd ]; then
/etc/init.d/rpcd restart >/dev/null 2>&1
fi
if [ -x /etc/init.d/uhttpd ]; then