Commit Graph

8 Commits

Author SHA1 Message Date
Paul Donald 4628b6bd43 p910nd: set bidi only if not already set
Closes #23774

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
2024-04-26 14:53:06 -07:00
Paul Donald 685ef7d97b p910nd: restart daemon even if no driver file is needed
Not all USB printers need a blob loading; restart the daemon
independently of driver loading.

Closes openwrt/packages#23588

Signed-off-by: Paul Donald <newtwen@gmail.com>
Tested-by: minicx <minicx@disroot.org>
2024-03-12 22:09:58 +01:00
Paul Donald 58e7bfc41f p910nd: hotplug shellcheck fixes
Signed-off-by: Paul Donald <newtwen@gmail.com>
2024-02-11 15:48:49 -08:00
Paul Donald 4591a79fa2 p910nd: hotplug+init: include extra ieee1284 properties
Apple and macOS GUI co-opts the mDNS note= param as "Location"

Signed-off-by: Paul Donald <newtwen@gmail.com>
2024-02-11 15:48:49 -08:00
Paul Donald 5bc581e698 p910nd: hotplug: minor bug fixes
Commit driver_home defaults before continuing

Fix missing path for serial number acquisition

Store current device if no previously configured device had one.
Also set CHAR_DEV so the printer can get its driver sent on first run.

Signed-off-by: Paul Donald <newtwen@gmail.com>
2024-02-11 15:48:49 -08:00
Paul Donald 6e886cd434 p910nd: hotplug: small refactor
replace -a with &&

shorten uci commands via variables

add optional ieee1284_id parameters

Signed-off-by: Paul Donald <newtwen@gmail.com>
2024-02-11 15:48:49 -08:00
Paul Donald 825b22a4db p910nd: hotplug script
Signed-off-by: Paul Donald <newtwen@gmail.com>
2024-02-04 16:22:58 -08:00
Daniel F. Dickinson 932c76fa74 p910nd: Run as non-root by default
We add the necessary Makefile, hotplug, config, and init bits
so that p910nd daemon runs as user:group p910nd:lp by default.
This eliminates an unnecessary root daemon.

The hotplug script sets the permissions of the USB lp
device(s) to read-write owner and group and no access to
anyone else, and sets owner root, group lp.

This is allows sufficient privileges to p910nd
to do it's job.

Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
2019-08-02 15:58:57 +08:00