From 8e9f7bc313a4ae23d977b5cf7979cf6036fd2e47 Mon Sep 17 00:00:00 2001 From: jim-p Date: Thu, 10 Sep 2015 08:19:02 -0400 Subject: Fix softflowd for 2.1.x, platform_booting() does not exist there. --- config/softflowd/softflowd.xml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/config/softflowd/softflowd.xml b/config/softflowd/softflowd.xml index adf5359c..b05e8319 100644 --- a/config/softflowd/softflowd.xml +++ b/config/softflowd/softflowd.xml @@ -243,7 +243,11 @@ ) ); /* Only try to restart if not booting */ - if (!platform_booting()) { + if (function_exists("platform_booting")) { + if (!platform_booting()) { + restart_service("softflowd"); + } + } elseif (!($g['booting'])) { restart_service("softflowd"); } } -- cgit v1.2.3