openvpnctrl: Force 'modprobe tun' before starting the openvpn daemon.

This commit is contained in:
Michael Tremer
2011-07-19 11:42:53 +02:00
parent cdc2be25f1
commit 81a789d931

View File

@@ -439,7 +439,9 @@ void startNet2Net(char *name) {
setFirewallRules();
char command[STRING_SIZE];
sprintf(command, "/usr/sbin/openvpn --config %s", configfile);
snprintf(command, STRING_SIZE-1, "/sbin/modprobe tun");
executeCommand(command);
snprintf(command, STRING_SIZE-1, "/usr/sbin/openvpn --config %s", configfile);
executeCommand(command);
}