job openvpn: modprobe tun
svn path=/nixos/branches/modular-nixos/; revision=15714
This commit is contained in:
parent
c0209d000a
commit
dc707dff08
@ -67,6 +67,9 @@ let
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
modprobe = config.system.sbin.modprobe;
|
||||||
|
|
||||||
###### implementation
|
###### implementation
|
||||||
|
|
||||||
cfg = config.services.openvpn;
|
cfg = config.services.openvpn;
|
||||||
@ -111,6 +114,7 @@ let
|
|||||||
respawn
|
respawn
|
||||||
script
|
script
|
||||||
exec &> /var/log/openvpn-${cfg.id}
|
exec &> /var/log/openvpn-${cfg.id}
|
||||||
|
${modprobe} tun || true
|
||||||
${openvpn}/sbin/openvpn --config ${configFile}
|
${openvpn}/sbin/openvpn --config ${configFile}
|
||||||
end script
|
end script
|
||||||
'';
|
'';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user