Package: minissdpd
Version: 1.5.20190210-1
Severity: wishlist
Tags: patch

If the MiniSSDPd_INTERFACE_ADDRESS variable in the default file
contains more than one interface, the init script issues an error
message which although it does not stop the starting of the daemon
it is uneccesarily alarming. The attached patch solves that issue.

regards
George Zarkadas
From a49c06d838c2f828e2879c732f8d87596d6a89c1 Mon Sep 17 00:00:00 2001
From: "Georgios M. Zarkadas" <[email protected]>
Date: Sun, 17 Mar 2019 20:30:57 +0200
Subject: [PATCH] Fixed annoying startup message "... unexpected operator" when
 MiniSSDPd_INTERFACE_ADDRESS contains more then one interface.

Signed-off-by: Georgios M. Zarkadas <[email protected]>
---
 debian/init | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/init b/debian/init
index 95a0dfa..e01408f 100644
--- a/debian/init
+++ b/debian/init
@@ -45,7 +45,7 @@ start)
 		exit 1
 	fi
 
-	if [ -z ${MiniSSDPd_INTERFACE_ADDRESS} ] ; then
+	if [ -z "${MiniSSDPd_INTERFACE_ADDRESS}" ] ; then
 		log_daemon_msg "MiniSSDPd: no interface defined: exiting"
 		log_end_msg 1
 		exit 1
-- 
2.20.1

Reply via email to