xl2tpd: fix xl2tpd options
authorDaniel Golle <redacted>
Fri, 5 Jun 2015 15:11:07 +0000 (17:11 +0200)
committerDaniel Golle <redacted>
Fri, 5 Jun 2015 15:42:06 +0000 (17:42 +0200)
The previous commit left an unwanted string in the options passed
to xl2tpd-control. Remove that as well.
Also set procd respawn parameter now that I'm at it.

Signed-off-by: Daniel Golle <redacted>
net/xl2tpd/Makefile
net/xl2tpd/files/l2tp.sh
net/xl2tpd/files/xl2tpd.init

index cba7bf03f2cb824599c0c96378b4f1e350643c18..13d510fb5890b059b3793a889491202d4b6f7e55 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=xl2tpd
 PKG_VERSION:=1.3.7pre20150524
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
 PKG_LICENSE:=GPL-2.0
 PKG_LICENSE_FILES:=LICENSE
index d4a6505b96bb64d4212e769a2c1bd1ed919252d1..afb3a51c12120301d4a720a0e3bccffafc69def7 100644 (file)
@@ -86,7 +86,7 @@ proto_l2tp_setup() {
        echo "${ipv6:++ipv6} ${pppd_options}" >> "${optfile}"
        echo "${mtu:+mtu $mtu mru $mtu}" >> "${optfile}"
 
-       xl2tpd-control add l2tp-${interface} pppoptfile=${optfile} lns=${server} timeout=20 || {
+       xl2tpd-control add l2tp-${interface} pppoptfile=${optfile} lns=${server} || {
                echo "xl2tpd-control: Add l2tp-$interface failed" >&2
                proto_setup_failed "$interface"
                exit 1
index 86098603e2158119b9c329d1c271653271109559..7d2e9ea30c17bb1c09c191be7750dc8b50d044d4 100644 (file)
@@ -14,6 +14,7 @@ start_service() {
 
        procd_open_instance
        procd_set_param command $BIN -D -l -p "$PID_F"
+       procd_set_param respawn
        procd_close_instance
 }
 
git clone https://git.99rst.org/PROJECT