diff options
Diffstat (limited to 'src/de/blinkt/openvpn/LaunchVPN.java')
-rw-r--r-- | src/de/blinkt/openvpn/LaunchVPN.java | 5 |
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) { |