openwrt / openwrt/packages

Nut_server wrong driver option

Open
#25,552 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Makefile
Stars
4.6k
Forks
4k
Avg merge
3d 12h
Merged PRs (30d)
134

Description

Maintainer: common packages maintainers
Environment: ARMv8 Processor rev 0, Bananapi BPI-R4, OpenWrt 24.10.0-rc2 r28161-ea17e958b9

Description:

Use luci nut panel to create /etc/config/nut_server file. Try to start nut-server without success.

After some investigation, found that the driver option in config file nut_server was not properly written.

Luci give this driver option /lib/nut/usbhid-ups and send this to the file.

After change the config file manualy from
option driver '/lib/nut/usbhid-ups'
to
option driver 'usbhid-ups'
erverything work as expected.

Salutations.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the LuCI NUT panel and the generated /etc/config/nut_server file; compare the driver value it writes with the value accepted by nut-server. Reproduce the failure by starting nut-server, then verify that the generated configuration uses usbhid-ups and the service starts successfully.

Written by the indexing model from the issue text.

Assessment

Domain
devops
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.