Skip to content

luci-app-nut: update deprecated config names#8434

Draft
danielfdickinson wants to merge 1 commit intoopenwrt:masterfrom
danielfdickinson:pr-nut-update-deprecated-config-names
Draft

luci-app-nut: update deprecated config names#8434
danielfdickinson wants to merge 1 commit intoopenwrt:masterfrom
danielfdickinson:pr-nut-update-deprecated-config-names

Conversation

@danielfdickinson
Copy link
Copy Markdown
Contributor

  • This PR is not from my main or master branch 💩, but a separate branch ✅

  • Each commit has a valid ✒️ Signed-off-by: <my@email.address> row (via git commit --signoff)

  • Each commit and PR title has a valid 📝 <package name>: title first line subject for packages

  • Tested on: (architecture, openwrt version, browser) ✅
    OpenWrt Version: OpenWrt SNAPSHOT r33436-7d2c244646
    OpenWrt Target/Subtarget: bcm27xx/bcm2709
    OpenWrt Device: Raspberry Pi 2 Model B Rev 1.1

    UPS: Tripp-Lite ECO550U
    UPS: Tripp-Lite AVR550UPS
    UPS: dummy-ups
    
  • ( Preferred ) Mention: @danielfdickinson @systemcrash

  • ( Optional ) Depends on: e.g. openwrt/packages#pr-number in sister repo
    Depends on: nut: ensure correct settings names packages#28875

  • Description: (describe the changes proposed in this PR)

Description:
Some years ago upstream changed the names the primary/secondary
UPS system/monitor from master/slave to primary/secondary. It is uncertain
how much longer these deprecated names will be accepted by NUT.
Therefore update naming to match upstream documentation and configuration.
See https://networkupstools.org/docs/man/upsmon.html,
https://networkupstools.org/docs/man/upsmon.conf.html, and
https://networkupstools.org/docs/man/upsd.users.html.

@github-actions

This comment has been minimized.

@danielfdickinson danielfdickinson force-pushed the pr-nut-update-deprecated-config-names branch from b5b98f9 to 244652e Compare March 17, 2026 10:51
@danielfdickinson danielfdickinson marked this pull request as draft March 18, 2026 01:57
@danielfdickinson
Copy link
Copy Markdown
Contributor Author

I've realized this does not handle the case of old names for sections, so I am converting this to draft for now.

@danielfdickinson danielfdickinson force-pushed the pr-nut-update-deprecated-config-names branch from 244652e to f578f56 Compare March 18, 2026 02:52
@danielfdickinson danielfdickinson marked this pull request as ready for review March 18, 2026 02:53
@danielfdickinson danielfdickinson changed the title luci-app-nut: update deprected config names luci-app-nut: update deprecated config names Mar 18, 2026
Some years ago upstream changed the names the primary/secondary
UPS system/monitor from master/slave to primary/secondary. It is
uncertain how much longer these deprecated names will be accepted
by NUT. Therefore update naming to match upstream documentation
and configuration.
See <https://networkupstools.org/docs/man/upsmon.html>,
<https://networkupstools.org/docs/man/upsmon.conf.html>, and
<https://networkupstools.org/docs/man/upsd.users.html>.

Support for deprected names is retained in this version.

Signed-off-by: Daniel F. Dickinson <dfdpublic@wildtechgarden.ca>
@danielfdickinson danielfdickinson force-pushed the pr-nut-update-deprecated-config-names branch from f578f56 to b9b2710 Compare March 18, 2026 02:54
@danielfdickinson danielfdickinson marked this pull request as draft March 18, 2026 10:27
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.

1 participant