openvpn init script: Ensure that tun module is loaded.
authorStanislav Brabec <utx@penguin.cz>
Thu, 1 Jan 2009 23:33:43 +0000 (23:33 +0000)
committerutx@penguin.cz <utx@penguin.cz>
Thu, 1 Jan 2009 23:35:15 +0000 (23:35 +0000)
packages/openvpn/files/openvpn
packages/openvpn/openvpn_2.0.9.bb

index 94bdc60..a3cd6a2 100755 (executable)
@@ -13,6 +13,7 @@ test -x $DAEMON || exit 0
 test -d $CONFIG_DIR || exit 0
 
 start_vpn () {
+    modprobe tun >/dev/null 2>&1 || true
     $DAEMON --daemon --writepid /var/run/openvpn.$NAME.pid \
             --config $CONFIG_DIR/$NAME.conf --cd $CONFIG_DIR || echo -n " FAILED->"
     echo -n " $NAME"
index bb22dc9..5bb4a28 100644 (file)
@@ -1,3 +1,3 @@
 require openvpn.inc
 
-PR = "r1"
+PR = "r2"