aboutsummaryrefslogtreecommitdiff
path: root/net/p910nd
Commit message (Collapse)AuthorAge
* p910nd: set bidi only if not already setPaul Donald2024-04-26
| | | | | | Closes #23774 Signed-off-by: Paul Donald <newtwen+github@gmail.com>
* p910nd: fix running multiple instancesPeca Nesovanovic2024-03-26
| | | | | | | | | | | | | Compile tested: (ramips, rb760igs, 23.05 snapshot) Run tested: (ramips, rb760igs, 23.05 snapshot, tests done) Description: In case we have multiple device defined in /etc/config/p910nd then init script will try to start multiple instance with same instance name drop instance name as resolution tested on 23.05 snapshot with 2 USB printers Signed-off-by: Peca Nesovanovic <peca.nesovanovic@sattrakt.com>
* p910nd: restart daemon even if no driver file is neededPaul Donald2024-03-12
| | | | | | | | | | 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>
* p910nd: bump releasePaul Donald2024-02-14
| | | | Signed-off-by: Paul Donald <newtwen@gmail.com>
* p910nd: hotplug shellcheck fixesPaul Donald2024-02-11
| | | | Signed-off-by: Paul Donald <newtwen@gmail.com>
* p910nd: init: check device (/dev/usb/lpX) existencePaul Donald2024-02-11
| | | | | | | this prevents the daemon exiting when a configured device is not plugged in. Signed-off-by: Paul Donald <newtwen@gmail.com>
* p910nd: init: partial fix for openwrt/packages#10496Paul Donald2024-02-11
| | | | | | | | | | | Harmless to carry this fix until procd.sh adds the param This parameter will mean umdns advertises not just "OpenWrt" but a more appropriate string: "Apple LaserWriter Pro 630" Signed-off-by: Paul Donald <newtwen@gmail.com>
* p910nd: hotplug+init: include extra ieee1284 propertiesPaul Donald2024-02-11
| | | | | | Apple and macOS GUI co-opts the mDNS note= param as "Location" Signed-off-by: Paul Donald <newtwen@gmail.com>
* p910nd: hotplug: minor bug fixesPaul Donald2024-02-11
| | | | | | | | | | | 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>
* p910nd: hotplug: small refactorPaul Donald2024-02-11
| | | | | | | | | | replace -a with && shorten uci commands via variables add optional ieee1284_id parameters Signed-off-by: Paul Donald <newtwen@gmail.com>
* p910nd: init: add txtvers=1 to mDNS propertiesPaul Donald2024-02-11
| | | | | | | | | | | | The spec https://developer.apple.com/bonjour/printing-specification/bonjourprinting-1.2.1.pdf notes: ... if the meaning of any of the TXT record keys is changed, the txtvers value will be incremented. The current value of this key is “1”, and if this key does not exist in the TXT record, the default value of “1” is assumed. The txtvers SHOULD be the first key/value pair in the TXT record. Signed-off-by: Paul Donald <newtwen@gmail.com>
* p910nd: init: line-break and conditionalize mDNS propertiesPaul Donald2024-02-11
| | | | Signed-off-by: Paul Donald <newtwen@gmail.com>
* p910nd: init: only run mDNS changes if mdns is set to onPaul Donald2024-02-11
| | | | | | i.e. don't do the extra work unless mdns setting is enabled Signed-off-by: Paul Donald <newtwen@gmail.com>
* p910nd: init scriptPaul Donald2024-02-11
| | | | | | | | | | | | | | | Don't run procd with a name of p9100d or p9101d etc. Use the original binary name: p910nd. This way, all supplied parameters should be visible via e.g.: ps xargs -0 < /proc/{procid}/cmdline Revise all p910nd strings to the variable DAEMON_NAME or CONFIG where appropriate. Signed-off-by: Paul Donald <newtwen@gmail.com>
* p910nd: hotplug scriptPaul Donald2024-02-04
| | | | Signed-off-by: Paul Donald <newtwen@gmail.com>
* p910nd: config trigger reload and default disabledChen Minqiang2020-11-26
| | | | Signed-off-by: Chen Minqiang <ptpt52@gmail.com>
* p910nd: Run as non-root by defaultDaniel F. Dickinson2019-08-02
| | | | | | | | | | | | | | | 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>
* p910nd: add mdns supportPhilipp Kerling2019-04-15
| | | | Signed-off-by: Philipp Kerling <pkerling@casix.org>
* p910nd: Change start init sequence to 99Francesco Molitierno2018-07-29
| | | | | | | | Delay startup of p910nd to give devices more time to enumerate Fixes issue #4752 Tested on mir3g Signed-off-by: Francesco Molitierno <francyesc0@hotmail.it>
* treewide: run "make check FIXUP=1"Etienne Champetier2017-08-29
| | | | | | | | | | fix Makefile chmod (644) replace MD5SUM with HASH add PKG_MIRROR_HASH when PKG_SOURCE_PROTO:=git (PKG_SOURCE_PROTO:=svn tarballs are not reproducible for now) Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
* p910nd: Convert p910nd init script to procdMaximilian Mehnert2016-05-01
| | | | | | Signed-off-by: Maximilian Mehnert <maximilian.mehnert@gmx.de> [pkerling@casix.org: increase PKG_RELEASE version] Signed-off-by: Philipp Kerling <pkerling@casix.org>
* Import and update p910nd packagePhilipp Kerling2014-08-03
Signed-off-by: Philipp Kerling <pkerling@casix.org>