Skip to contentSkip to conversation

package/ser2net: check for new config file format

PATCH New James Hilliard 2 participants 2 messages Mar 6, 2020 – Mar 8, 2020

lore
Share & tools
lore
#0 lore raw

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

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.

---
 package/ser2net/S50ser2net | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/ser2net/S50ser2net +1 -1
index 200dfd0e4d..1b178c18f4 100644
@@ -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
Signature · 1 line
2.20.1
#1 lore raw

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

Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"James" == James Hilliard <[email protected]> writes:

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.

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard