wok diff openvpn/stuff/etc/init.d/openvpn-client @ rev 18897

syslinux/isohybrid.exe add -r support
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Feb 14 22:06:06 2016 +0100 (2016-02-14)
parents cc6e05d2cb9a
children 7f188676b59c
line diff
     1.1 --- a/openvpn/stuff/etc/init.d/openvpn-client	Thu Apr 17 14:01:12 2014 +0400
     1.2 +++ b/openvpn/stuff/etc/init.d/openvpn-client	Sun Feb 14 22:06:06 2016 +0100
     1.3 @@ -1,5 +1,5 @@
     1.4  #!/bin/sh
     1.5 -# /etc/init.d/rsyncd: Start, stop and restart Rsync deamon on SliTaz, at boot
     1.6 +# /etc/init.d/openvpn-client: Start, stop and restart openvpn deamon on SliTaz, at boot
     1.7  # time or with the command line.
     1.8  #
     1.9  # To start daemon at boot time, just put the right name in the $RUN_DAEMONS
    1.10 @@ -12,7 +12,7 @@
    1.11  DESC="VPN daemon"
    1.12  DAEMON=/usr/sbin/openvpn
    1.13  OPTIONS=$OPENVPN_OPTIONS
    1.14 -PIDFILE=/var/run/rsyncd.pid
    1.15 +PIDFILE=/var/run/openvpni-client.pid
    1.16  
    1.17  checktundevice() {
    1.18  	if [ ! -e /dev/net/tun ]; then
    1.19 @@ -28,6 +28,7 @@
    1.20  	fi
    1.21  }
    1.22  
    1.23 +[ -d /var/run/openvpn ] || mkdir -p /var/run/openvpn
    1.24  case "$1" in
    1.25    start)
    1.26      checktundevice