summaryrefslogtreecommitdiff
path: root/scripts
Commit message (Collapse)AuthorAgeFilesLines
* vpn: Rename openconnect-script to vpn-scriptJussi Laakkonen2019-04-301-3/+5
| | | | | | | | | The scripts/openconnect-script.c has nothing OpenConnect specific and is also used by VPNC. Thus, renaming it to generic vpn-script.c clarifies the purpose of the script. Changed OpenConnect and VPNC plugins to use vpn-script. Modified Makefile.plugins also to use the vpn-script..
* scripts: Don't forceably overwrite /etc/resolv.confJonas Bonn2018-01-041-1/+1
| | | | | | | | | Using L+ in the tmpfiles.d snippet is overly aggressive. These snippets are evaluated on every boot and may be evaluated on package upgrade. It's fine to check that the file /etc/resolv.conf exists, but forceably overwriting an existing file or link makes it difficult for connman to co-exist with other potential managers of /etc/resolv.conf.
* scripts: Create directory and link to resolv.confPatrik Flykt2015-11-251-0/+5
| | | | | Add init script functionality to create the [/var]/run/connman directory and a symlink from /etc/resolv.conf by default.
* src: Add tmpfiles.d support for resolv.confPatrik Flykt2015-11-251-0/+2
| | | | | Add tmpfiles.d support for creating the directory [/var]/run/connman/ an making a link from /etc/resolv.conf.
* build: Fix using '@prefix@/sbin' instead of '@sbindir@Vinicius Costa Gomes2015-03-311-1/+1
| | | | | | | | This solves the problem of '496f134ac1001dd2af17b1ee7172643be80edbae' for all the generated files, while trying to be safe against partially expanded variables. [Patrik: Added init script handling to EXTRA_DIST and BUILT_SOURCES]
* scripts: Fix copyright statementDaniel Wagner2014-07-221-1/+1
| | | | | | | | | | The copyright statement for my company is not consistent or even wrongly spelled. s/All rights reserved// s/CarIT/Car IT/ s/BWM/BMW/ s/GbmH/GmbH/
* openvpn-script: Debug print changeJukka Rissanen2014-07-011-1/+3
| | | | | Make the debug print more useful by printing what env vars are missing.
* scripts: Update copyright year(s)Patrik Flykt2014-03-111-1/+1
|
* scripts: Function prototype fixes when function has no parametersJukka Rissanen2013-10-181-1/+1
| | | | | Added void to function prototypes that do not have parameters. No functionality changes.
* scripts: Do not compare expression against NULLDaniel Wagner2013-08-073-21/+21
| | | | | | | | | | | | | | | | This patch generate via coccinelle with: @ disable is_null,isnt_null1 @ expression E; @@ ( - E == NULL + !E | - E != NULL + E )
* scripts: Whitespace cleanupDaniel Wagner2013-07-231-1/+3
| | | | | The coccinelle patch introduces some whitespace violiacense. Fix up most errors and warnings reported by checkpatch.
* scripts: Convert to stdbool with coccinelleDaniel Wagner2013-07-233-11/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch is completely generated by set of coccille rules and containts zero manual changes. The rule set is not really beautiful but it does the job. We might miss a few conversions but there should be none accidently wrong converted bool here. The rules are as following: //// Do not compare boolean expressions @@ expression E; symbol TRUE; symbol FALSE; @@ ( E - == TRUE | - TRUE == E + E | - E != TRUE + !E | - TRUE != E + !E | - E == FALSE + !E | - FALSE == E + !E | E - != FALSE | - FALSE != E + E ) //// Convert connman_bool_t to stdbool @@ connman_bool_t x; @@ x = ( - TRUE + true | - FALSE + false ) @@ identifier f; @@ connman_bool_t f(...) { <... - return TRUE; + return true; ...> } @@ identifier f; @@ connman_bool_t f(...) { <... - return FALSE; + return false; ...> } @r@ identifier f; parameter list[n] ps; identifier i; @@ f(ps, connman_bool_t i, ...) { ... } @@ identifier r.f; expression list [r.n] es; @@ f(es, ( - FALSE + false | - TRUE + true ) ,...) @r2@ type T; identifier f; parameter list[n] ps; identifier i; @@ T f(ps, connman_bool_t i, ...); @@ identifier r2.f; expression list [r.n] es; @@ f(es, ( - FALSE + false | - TRUE + true ) ,...) @@ typedef bool; @@ - connman_bool_t + bool //// Convert gboolean to stdbool @@ gboolean x; @@ x = ( - TRUE + true | - FALSE + false ) // Figure out which function signature will to be fixed... // when we have the defitition @r@ identifier f; parameter list[n] ps; identifier i; @@ f(ps, gboolean i, ...) { ... } // ... and now convert all call sites @@ identifier r.f; expression list [r.n] es; @@ f(es, ( - FALSE + false | - TRUE + true ) ,...) // Figure out which function signature will to be fixed... // when we have the declaration only @r2@ type T; identifier f; parameter list[n] ps; identifier i; @@ T f(ps, gboolean i, ...); // ... and now convert all call sites @@ identifier r2.f; expression list [r.n] es; @@ f(es, ( - FALSE + false | - TRUE + true ) ,...) // A handfull of the GLib hooks we can't change. Let's remember // all ther positions. // 1. timeouts @k1@ identifier f; position p; typedef gpointer; identifier ptr; @@ static gboolean@p f(gpointer ptr); @k2@ identifier f; position p; identifier ptr; @@ static gboolean@p f(gpointer ptr) { ... } // hash map iterator functions @k3@ identifier f; position p; identifier p1, p2, p3; @@ static gboolean@p f(gpointer p1, gpointer p2, gpointer p3) { ... } // 2. GIOChannel @k4@ identifier f; position p; typedef GIOChannel, GIOCondition; identifier ptr; identifier ch, cn; @@ static gboolean@p f(GIOChannel *ch, GIOCondition cn, gpointer ptr); @k5@ identifier f; position p; identifier ptr; identifier ch, cn; @@ static gboolean@p f(GIOChannel *ch, GIOCondition cn, gpointer ptr) { ... } // 3. GSourceFuncs @k6@ identifier f; position p; typedef GSource; identifier src; @@ static gboolean@p f(GSource *src, ...) { ... } // gdbus functions @k7@ identifier f; position p; typedef DBusConnection; identifier con; @@ static gboolean@p f(DBusConnection *con, ...) { ... } // Now convert all gboolean which are are not used for interactin // with GLib // Note here happens the magic! @@ typedef bool; position p != {k1.p,k2.p,k3.p,k4.p,k5.p,k6.p,k7.p}; @@ - gboolean@p + bool // Update all return types @@ identifier f; @@ bool f(...) { <... - return TRUE; + return true; ...> } @@ identifier f; @@ bool f(...) { <... - return FALSE; + return false; ...> } //// Last last rule is to fixup all missed call sites. In theory we should //// fixed them with some rules above but somehow coccinelle does not //// match. @@ identifier f =~ "^(__)?connman_.*" ; @@ f(..., ( - FALSE + false | - TRUE + true ) ,...)
* openvpn-script: Removed extra empty lineJukka Rissanen2012-11-231-1/+0
|
* openconnect-script: Print errors to syslog instead of stderrJukka Rissanen2012-11-231-11/+32
| | | | | Use syslog for error printing because normally the stderr goes to /dev/null and we do not see the errors.
* openvpn-script: Print errors to syslog instead of stderrJukka Rissanen2012-11-231-10/+32
| | | | | Use syslog for error printing because normally the stderr goes to /dev/null and we do not see the errors.
* plugins: Update copyright informationMarcel Holtmann2012-04-293-3/+3
|
* scripts: Report authentication error to connmanJukka Rissanen2011-11-151-1/+11
| | | | | The ppp plugin now checks ppp authentication error and report it to correct connman plugin.
* pptp: Add ppp plugin libraryMohamed Abbas2011-11-151-0/+307
| | | | | | | | pppd will use this library to talk with connman vpn plugin. Original patch comes from Mohamed Abbas. Prepared for inclusion by Jukka Rissanen, also changed the pptp function prefix to ppp as the plugin is used by both pptp and l2tp plugins.
* plugins: Initial vpnc supportMohamed Abbas2011-01-271-0/+4
|
* Remove support for dhclient pluginMarcel Holtmann2010-11-262-139/+0
|
* openvpn: Add OpenVPN supportDaniel Wagner2010-11-031-0/+123
|
* Add some extra checks to dhclient callout scriptMarcel Holtmann2010-07-281-0/+6
|
* Remove udhcp pluginMarcel Holtmann2010-07-271-120/+0
|
* Convert udhcp plugin to connman taskSamuel Ortiz2010-07-091-2/+9
| | | | | The udhcp plugin was still using the old and deprecated plugins/task.c API.
* Send system hostname with dhclient executionMarcel Holtmann2010-05-121-1/+0
|
* Add basic interfaces for automatic proxy configurationMarcel Holtmann2010-01-031-1/+3
|
* Update copyright informationMarcel Holtmann2010-01-013-3/+3
|
* Add OpenConnect provider plugin for AnyConnect VPN supportMohamed Abbas2009-12-091-0/+130
|
* Switch dhclient handling to task infrastructureMarcel Holtmann2009-12-071-6/+5
|
* Add parsing of Domainname, Hostname and Timeserver resultsMarcel Holtmann2009-12-071-2/+4
|
* Remove unfinished and unneeded PPP supportMarcel Holtmann2009-12-061-86/+0
|
* Convert to fully non-recursive build systemMarcel Holtmann2009-08-231-37/+0
|
* Fix handling of strict-aliasing rulesMarcel Holtmann2009-07-161-3/+7
|
* Don't use --pidfile in init scriptMarcel Holtmann2009-02-281-5/+2
|
* Include dhclient.conf in distributionMarcel Holtmann2009-01-031-1/+1
|
* Don't install dhclient.conf if not enabledMarcel Holtmann2009-01-031-2/+2
|
* Add proper enabled checks for DHCP scriptsMarcel Holtmann2009-01-031-2/+11
|
* The path_ifup[] and path_ifdown[] are Debian specificMarcel Holtmann2009-01-021-0/+2
|
* Update copyright informationMarcel Holtmann2009-01-013-3/+3
|
* Add basic pppd pluginMarcel Holtmann2008-12-312-0/+86
|
* Handle missing environment variablesMarcel Holtmann2008-12-311-0/+14
|
* Add dbus_connection_flush() to DHCP scriptsMarcel Holtmann2008-12-312-0/+4
|
* Use the correct domain for uDHCPMarcel Holtmann2008-12-291-2/+2
|
* Add initial implementation for uDHCP supportMarcel Holtmann2008-12-282-1/+100
|
* Remove the wpa_supplicant D-Bus scriptsMarcel Holtmann2008-07-303-24/+2
|
* Use constants for the dhclient interface and path valuesMarcel Holtmann2008-06-281-2/+5
|
* Update copyright informationMarcel Holtmann2008-04-141-1/+1
|
* Update DHCP plugin to use D-Bus low-level callsMarcel Holtmann2008-03-241-5/+18
|
* Add D-Bus configuration files for supplicantMarcel Holtmann2008-03-123-2/+24
|
* Add basic init scriptMarcel Holtmann2008-02-222-0/+55
|