mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
xl2tpd: fix xl2tpd options
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 <daniel@makrotopia.org>
This commit is contained in:
+1
-1
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=xl2tpd
|
PKG_NAME:=xl2tpd
|
||||||
PKG_VERSION:=1.3.7pre20150524
|
PKG_VERSION:=1.3.7pre20150524
|
||||||
PKG_RELEASE:=2
|
PKG_RELEASE:=3
|
||||||
PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
|
PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
|
||||||
PKG_LICENSE:=GPL-2.0
|
PKG_LICENSE:=GPL-2.0
|
||||||
PKG_LICENSE_FILES:=LICENSE
|
PKG_LICENSE_FILES:=LICENSE
|
||||||
|
|||||||
@@ -86,7 +86,7 @@ proto_l2tp_setup() {
|
|||||||
echo "${ipv6:++ipv6} ${pppd_options}" >> "${optfile}"
|
echo "${ipv6:++ipv6} ${pppd_options}" >> "${optfile}"
|
||||||
echo "${mtu:+mtu $mtu mru $mtu}" >> "${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
|
echo "xl2tpd-control: Add l2tp-$interface failed" >&2
|
||||||
proto_setup_failed "$interface"
|
proto_setup_failed "$interface"
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ start_service() {
|
|||||||
|
|
||||||
procd_open_instance
|
procd_open_instance
|
||||||
procd_set_param command $BIN -D -l -p "$PID_F"
|
procd_set_param command $BIN -D -l -p "$PID_F"
|
||||||
|
procd_set_param respawn
|
||||||
procd_close_instance
|
procd_close_instance
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user