🎈 Sync 2026-06-19 02:57:28

This commit is contained in:
github-actions[bot] committed 2026-06-19 02:57:28 +08:00
1 parent 29adf9f138
commit e6800e389f
5 files changed
+60 -12

No files matched your search

@@ -1,5 +1,6 @@
#!/bin/sh
# Background apk/opkg update for the Updates view. Returns at once; throttled.
# Refresh the apk/opkg index for the Updates view. Runs in the FOREGROUND so
# the caller can re-probe once the index is current; throttled to 90s.
LOCK=/tmp/luci-app-daede.idx.lock
@@ -9,13 +10,11 @@ if [ -f "$LOCK" ]; then
fi
: > "$LOCK"
(
# -n: skip if a package op holds the shared apk lock (no need to refresh then)
if command -v apk >/dev/null 2>&1; then
flock -n /tmp/luci-app-daede.apk.lock apk update
elif command -v opkg >/dev/null 2>&1; then
opkg update
fi
) >/dev/null 2>&1 </dev/null &
# -n: skip if a package op holds the shared apk lock (no need to refresh then)
if command -v apk >/dev/null 2>&1; then
flock -n /tmp/luci-app-daede.apk.lock apk update
elif command -v opkg >/dev/null 2>&1; then
opkg update
fi >/dev/null 2>&1
exit 0