Signed-off-by: Steven Barth <redacted>
$(INSTALL_DATA) ./files/options.xl2tpd $(1)/etc/ppp/
$(INSTALL_DIR) $(1)/lib/netifd/proto
- $(INSTALL_BIN) ./files/l2tp.sh $(1)/lib/netifd/proto
+ $(INSTALL_BIN) ./files/l2tpv2.sh $(1)/lib/netifd/proto
endef
$(eval $(call BuildPackage,xl2tpd))
init_proto "$@"
}
-proto_l2tp_init_config() {
+proto_l2tpv2_init_config() {
proto_config_add_string "username"
proto_config_add_string "password"
proto_config_add_string "keepalive"
no_device=1
}
-proto_l2tp_setup() {
+proto_l2tpv2_setup() {
local config="$1"
local iface="$2"
local optfile="/tmp/l2tp/options.${config}"
xl2tpd-control connect l2tp-${config}
}
-proto_l2tp_teardown() {
+proto_l2tpv2_teardown() {
local interface="$1"
local optfile="/tmp/l2tp/options.${interface}"
}
[ -n "$INCLUDE_ONLY" ] || {
- add_protocol l2tp
+ add_protocol l2tpv2
}