p910nd: fix running multiple instances

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>
(cherry picked from commit 152d80ce13)
This commit is contained in:
Peca Nesovanovic 2024-03-20 21:21:36 +01:00 committed by Tianling Shen
parent ae3ae3f30e
commit 7c3f86430e
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=p910nd
PKG_VERSION:=0.97
PKG_RELEASE:=12
PKG_RELEASE:=13
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=@SF/p910nd

View File

@ -41,7 +41,7 @@ start_p910nd() {
append_string "$section" device "-f "
append_string "$section" bind "-i "
append_string "$section" port ""
procd_open_instance $DAEMON_NAME
procd_open_instance
procd_set_param command /usr/sbin/$DAEMON_NAME $args
procd_set_param respawn