job openvpn: modprobe tun

svn path=/nixos/branches/modular-nixos/; revision=15714
This commit is contained in:
Marc Weber 2009-05-24 22:13:27 +00:00
parent c0209d000a
commit dc707dff08

View File

@ -67,6 +67,9 @@ let
};
};
modprobe = config.system.sbin.modprobe;
###### implementation
cfg = config.services.openvpn;
@ -111,6 +114,7 @@ let
respawn
script
exec &> /var/log/openvpn-${cfg.id}
${modprobe} tun || true
${openvpn}/sbin/openvpn --config ${configFile}
end script
'';