watchcat: fix interface resolution race - #30464
Conversation
openwrt-ai
left a comment
There was a problem hiding this comment.
Commit checks
a8a55c4"watchcat: silence shellcheck false positives" — also adds. /lib/functions/watchcat.shtowatchcat.init, which is a functional change rather than a shellcheck directive, and that file is only created in024a578. At this commit the init script sources a path that does not exist; move the line into the second commit.
Generated by Claude Code
024a578 to
3aabd7d
Compare
3aabd7d to
9cc45a1
Compare
6dbb915 to
fa0daef
Compare
We use shellcheck even though it is pedantic to assist in reducing errors. Therefore, we add shellcheck directives to silence false positives. We keep changes minimal as some shellcheck suggestions result in watchcat failing to function properly. Also make formatting shmt clean (using -ln=bash due to ash constructs that shfmt 3.8.0 does not accept for posix shells including busybox). Signed-off-by: Daniel F. Dickinson <dfdpublic@wildtechgarden.ca>
- Add interface trigger handling in watchcat.init - Log when raw interface trigger is activated by any interface coming up - Move helper functions to separate file - Update Makefile to install new functions file Closes: openwrt#30463 Signed-off-by: Daniel F. Dickinson <dfdpublic@wildtechgarden.ca>
fa0daef to
8618635
Compare
|
Tested on the device from #30463. Works. OpenWrt 25.12.5 r33051-f5dae5ece4, mediatek/filogic, OpenWrt One. Applied Cold boot: The race still happens at 16:34:28 as expected, but the raw trigger fires 6 seconds later when wan comes up and restarts the service. The resulting daemon logs no warning, so both
Note for anyone else looking: procd's I applied the files directly rather than building the package, so this run says nothing about the current build failures. |
|
@GamaBurst Thank you! The build failures are an issue with the infrastructure, based on my reading of them. There have been intermittent issues of this kind for quite some time now, so some PRs are green and others red even when there are no issues, although one has to read the red logs to be sure. |
📦 Package Details
Maintainer: @danielfdickinson @dhrm1k
Description:
Fixes the interface resolution race described in #30463:
While we are at it (to help reduce code errors):
We use shellcheck even though it is pedantic to assist in reducing
errors. Therefore, we add shellcheck directives to silence false
positives. We keep changes minimal as some shellcheck suggestions
result in watchcat failing to function properly.
Also make formatting shmt clean (using -ln=bash due to ash constructs
that shfmt 3.8.0 does not accept for posix shells including busybox).
Closes: #30463
🧪 Run Testing Details
✅ Formalities