p910nd: fix running multiple instances
authorPeca Nesovanovic <59750439+Npeca75@users.noreply.github.com>
Wed, 20 Mar 2024 20:21:36 +0000 (21:21 +0100)
committerTianling Shen <cnsztl@gmail.com>
Tue, 26 Mar 2024 03:57:52 +0000 (11:57 +0800)
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>
net/p910nd/Makefile
net/p910nd/files/p910nd.init

index 062a90bd19fd50c3566c1c9859957483d8c0e19a..c8934779a05f95e88489214221b24f6d2a851afc 100644 (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
index a15e8d1dc739b26cb0d313cc8b0099f68530612c..cfb3bbd956e7aba98c2ad9220ddc6ff772404242 100644 (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