Skip to content

ddns-scripts: fix incorrect option name in updater messages#29208

Open
dhrm1k wants to merge 3 commits intoopenwrt:masterfrom
dhrm1k:ddns-updater-legacy-syntax-hint-master-fix
Open

ddns-scripts: fix incorrect option name in updater messages#29208
dhrm1k wants to merge 3 commits intoopenwrt:masterfrom
dhrm1k:ddns-updater-legacy-syntax-hint-master-fix

Conversation

@dhrm1k
Copy link
Copy Markdown

@dhrm1k dhrm1k commented Apr 21, 2026

On master, updater help and missing-option text still refer to '-N'. Use '-S' instead so the messages match accepted script options. This is a text-only change; runtime behavior is unchanged.

Fixes: #27737

📦 Package Details

Maintainer: @feckert

Description:
Update wording in net/ddns-scripts/files/usr/lib/ddns/dynamic_dns_updater.sh:

  • help text: remove incorrect -N reference
  • missing-option error: -N -> -S

No parser/runtime logic changes are introduced.


🧪 Run Testing Details

  • OpenWrt Version: 24.10.4
  • OpenWrt Target/Subtarget: x86/64
  • OpenWrt Device: Generic (x86_64 VM)

Manual CLI checks:

  • /usr/lib/ddns/dynamic_dns_updater.sh -> missing -S
  • /usr/lib/ddns/dynamic_dns_updater.sh -h -> help reflects -S
  • /usr/lib/ddns/dynamic_dns_updater.sh -N foo -> invalid option -N
  • /usr/lib/ddns/dynamic_dns_updater.sh -S -> missing arg for -S

✅ Formalities

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

If your PR contains a patch:

  • It can be applied using git am
  • It has been refreshed to avoid offsets, fuzzes, etc., using
    make package/<your-package>/refresh V=s
  • It is structured in a way that it is potentially upstreamable
    (e.g., subject line, commit description, etc.)
    We must try to upstream patches to reduce maintenance burden.

@dhrm1k dhrm1k force-pushed the ddns-updater-legacy-syntax-hint-master-fix branch from 7c46801 to aae0e0a Compare April 22, 2026 10:14
@dhrm1k
Copy link
Copy Markdown
Author

dhrm1k commented Apr 22, 2026

Last workflow failed because i forgot to add Signed-off-by. I have amended the commit.

@BKPepe BKPepe requested a review from Copilot April 27, 2026 10:55
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Updates dynamic_dns_updater.sh user-facing text so documentation/error output matches the actual accepted options (replacing the incorrect -N reference with -S), aligning with the script’s option parsing and fixing issue #27737.

Changes:

  • Fix help/usage text to remove the incorrect -N reference
  • Fix missing-option error message to reference -S instead of -N

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread net/ddns-scripts/files/usr/lib/ddns/dynamic_dns_updater.sh Outdated
@feckert
Copy link
Copy Markdown
Member

feckert commented Apr 28, 2026

Please bump PKG_RELEASE by one.

dhrm1k and others added 3 commits April 28, 2026 20:40
On master, updater help and missing-option text still refer to '-N'.
Use '-S' instead so the messages match accepted script options.
This is a text-only change; runtime behavior is unchanged.

Fixes: openwrt#27737
Signed-off-by: Dharmik Parmar <dharmikparmar2004@yahoo.com>
The updater -h help text was tautological after replacing -N with -S and no
longer explained what value to pass to -S. Added that.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Dharmik Parmar <dharmikparmar2004@yahoo.com>
Bump PKG_RELEASE to 4 to cover the recent updater help text fixes.

Signed-off-by: Dharmik Parmar <dharmikparmar2004@yahoo.com>
@dhrm1k dhrm1k force-pushed the ddns-updater-legacy-syntax-hint-master-fix branch from 5a2a227 to 2dcc6a5 Compare April 28, 2026 15:24
@dhrm1k
Copy link
Copy Markdown
Author

dhrm1k commented Apr 28, 2026

@feckert i have bumped the pkg_release.

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.

ddns-scripts: /usr/lib/ddns/dynamic_dns_updater.sh opc 0 per wiki is a syntax error

3 participants