From 2d5f789ccf70999cabc4b84925b3d2686f719949 Mon Sep 17 00:00:00 2001 From: Peca Nesovanovic <59750439+Npeca75@users.noreply.github.com> Date: Wed, 20 Mar 2024 21:21:36 +0100 Subject: [PATCH] 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 (cherry picked from commit 152d80ce1326d0b1fee8e324ec8e68dd9f44cf4a) --- net/p910nd/Makefile | 2 +- net/p910nd/files/p910nd.init | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/net/p910nd/Makefile b/net/p910nd/Makefile index 062a90bd19..c8934779a0 100644 --- a/net/p910nd/Makefile +++ b/net/p910nd/Makefile @@ -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 diff --git a/net/p910nd/files/p910nd.init b/net/p910nd/files/p910nd.init index a15e8d1dc7..cfb3bbd956 100644 --- a/net/p910nd/files/p910nd.init +++ b/net/p910nd/files/p910nd.init @@ -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 -- 2.30.2