[Buildroot] [PATCH 1/1] package/ser2net: check for new config file format

James Hilliard james.hilliard1 at gmail.com
Fri Mar 6 23:25:01 UTC 2020


When running ser2net it looks for config files in the legacy conf
format and the new yaml format so we need to allow either in the
sysv init script.

Signed-off-by: James Hilliard <james.hilliard1 at gmail.com>
---
 package/ser2net/S50ser2net | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/ser2net/S50ser2net b/package/ser2net/S50ser2net
index 200dfd0e4d..1b178c18f4 100644
--- a/package/ser2net/S50ser2net
+++ b/package/ser2net/S50ser2net
@@ -5,7 +5,7 @@
 
 start() {
     printf  "Starting ser2net: "
-    if [ ! -f /etc/ser2net.conf ] ; then
+    if [ ! -f /etc/ser2net.conf ] && [ ! -f /etc/ser2net/ser2net.yaml ] ; then
 	echo "no configuration file"
 	exit 1
     fi
-- 
2.20.1




More information about the buildroot mailing list