technology: return already enabled when tethering is enabled
[framework/connectivity/connman.git] / scripts / openconnect-script.c
index a04c9f4..ef81c94 100644 (file)
@@ -2,7 +2,7 @@
  *
  *  Connection Manager
  *
- *  Copyright (C) 2007-2009  Intel Corporation. All rights reserved.
+ *  Copyright (C) 2007-2012  Intel Corporation. All rights reserved.
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License version 2 as
@@ -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);