Skip to content

Conversation

@ivanddiaz
Copy link

@ivanddiaz ivanddiaz commented Dec 23, 2025

📦 Package Details

Maintainer: rogerdammit@gmail.com

Description:
This PR reverts the unnecessary quoting added in r18 to the init script.

The original change attempted to support multiple pinghosts by wrapping values in extra quotes, but this is not needed. While multi-host support remains fully functional, the quoting caused inconsistent behavior between /etc/init.d/watchcat and /usr/bin/watchcat.sh, particularly in single-IP configurations.


🧪 Run Testing Details

  • OpenWrt Version: SNAPSHOT
  • OpenWrt Target/Subtarget: x86_64
  • OpenWrt Device: Generic

✅ Formalities

  • I have reviewed the CONTRIBUTING.md file for detailed contributing guidelines.

@ivanddiaz ivanddiaz force-pushed the watchcat-revert-pinghosts branch from f62515a to 771bdf7 Compare December 23, 2025 13:49
ivanddiaz referenced this pull request Dec 23, 2025
The backend now correctly supports multiple IP addresses and avoids
argument shifting when mmifacename is empty.

Signed-off-by: Ivan Diaz <diaz.it@icloud.com>
@ivanddiaz
Copy link
Author

This PR fixes #28100

@ivanddiaz ivanddiaz force-pushed the watchcat-revert-pinghosts branch 2 times, most recently from 94887ad to 280f668 Compare December 23, 2025 18:19
@efahl
Copy link
Contributor

efahl commented Dec 24, 2025

This PR fixes #28100

You should put that in your commit message just above your Signed-off-by: line:

Fixes: #28100 (watchcat: error if only one address is specified in pinghosts)

The quoting added in r18 for pinghosts is not needed. Multi-host support
remains fully functional, but the extra quotes caused inconsistent argument
handling between /etc/init.d/watchcat and /usr/bin/watchcat.sh,
especially for single-IP configurations.

This revert removes the unnecessary quoting in the init script and LUCI,
restoring consistent behavior while keeping multiple ping hosts supported.

Fixes: openwrt#28100 (watchcat: error if only one address is specified in pinghosts)
Signed-off-by: Ivan Diaz <diaz.it@icloud.com>
@ivanddiaz ivanddiaz force-pushed the watchcat-revert-pinghosts branch from 280f668 to be9fcd1 Compare December 24, 2025 20:05
@ivanddiaz
Copy link
Author

You should put that in your commit message just above your Signed-off-by: line:

Fixes: #28100 (watchcat: error if only one address is specified in pinghosts)

Done!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants