[Buildroot] [git commit] package/ser2net: S50ser2net: alsoc heck for new config file format
Peter Korsgaard
peter at korsgaard.com
Sun Mar 8 14:02:52 UTC 2020
commit: https://git.buildroot.net/buildroot/commit/?id=55514e8c63504d210402e1cf13f7ca9ce1208c56
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master
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>
Signed-off-by: Peter Korsgaard <peter at korsgaard.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
More information about the buildroot
mailing list