package/ser2net: S50ser2net: alsoc heck for new config file format
authorJames Hilliard <james.hilliard1@gmail.com>
Fri, 6 Mar 2020 23:25:01 +0000 (16:25 -0700)
committerPeter Korsgaard <peter@korsgaard.com>
Sun, 8 Mar 2020 14:02:52 +0000 (15:02 +0100)
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@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/ser2net/S50ser2net

index 200dfd0e4df77ef5ac2add14f6da31be8c1c57d3..1b178c18f43109fafdc55c5591972f59c74d8910 100644 (file)
@@ -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