[PATCH 4/4] Add support for vpnc script

Mohamed Abbas mabbas at linux.intel.com
Mon Jan 17 12:56:01 PST 2011


Using oprnconnect-script since both as very similar. I just
adding a check fot pre-init case we should not call
connman on this condition.
---

Sorry they are four patches total.

 scripts/openconnect-script.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/scripts/openconnect-script.c b/scripts/openconnect-script.c
index 565bda7..509fc95 100644
--- a/scripts/openconnect-script.c
+++ b/scripts/openconnect-script.c
@@ -79,6 +79,10 @@ int main(int argc, char *argv[])
 		fprintf(stderr, "Required environment variables not set\n");
 		return 1;
 	}
+
+	if (strcmp(reason, "pre-init") == 0)
+		return 0;
+
 	dbus_error_init(&error);
 
 	conn = dbus_bus_get(DBUS_BUS_SYSTEM, &error);
-- 
1.7.3.4




More information about the connman mailing list