summaryrefslogtreecommitdiff
path: root/src
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
commit7b64dff3e0f514ccc6a347f3aa571c2c42f09e62 (patch)
tree0810a5286fa4b20a7d02807e50245a8f6cc9bac1 /src
parent1a3370bd689895d0631bb283e56646681bb8834d (diff)
If a device needs both fixes better first load the module and then apply the permissions fix
Diffstat (limited to 'src')
-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 7b1c6cce..32f8bcf5 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) {