summaryrefslogtreecommitdiff
path: root/src/de/blinkt
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2012-07-17 20:19:50 +0200
committerArne Schwabe <arne@rfc2549.org>2012-07-17 20:19:50 +0200
commitbf47a367683c1de3ddb9b94fbfa24ad7b43758e6 (patch)
tree4d4cc8310606ff7a88e878d6e8a055055b92c5c3 /src/de/blinkt
parent43c459849e679f4b1973241dace60e837649219f (diff)
If a device needs both fixes better first load the module and then apply the permissions fix
Diffstat (limited to 'src/de/blinkt')
-rw-r--r--src/de/blinkt/openvpn/LaunchVPN.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/de/blinkt/openvpn/LaunchVPN.java b/src/de/blinkt/openvpn/LaunchVPN.java
index 7b1c6cc..32f8bcf 100644
--- a/src/de/blinkt/openvpn/LaunchVPN.java
+++ b/src/de/blinkt/openvpn/LaunchVPN.java
@@ -352,12 +352,13 @@ public class LaunchVPN extends ListActivity implements OnItemClickListener {
boolean usecm9fix = prefs.getBoolean("useCM9Fix", false);
boolean loadTunModule = prefs.getBoolean("loadTunModule", false);
+ if(loadTunModule)
+ execeuteSUcmd("modprobe tun");
+
if(usecm9fix && !mCmfixed ) {
execeuteSUcmd("chown system /dev/tun");
}
- if(loadTunModule)
- execeuteSUcmd("modprobe tun");
if (intent != null) {