xl2tpd: rename netifd protocol handler to l2tpv2 to avoid clashes with l2tpv3
authorSteven Barth <redacted>
Sat, 19 Jul 2014 10:13:40 +0000 (12:13 +0200)
committerSteven Barth <redacted>
Sat, 19 Jul 2014 10:13:40 +0000 (12:13 +0200)
Signed-off-by: Steven Barth <redacted>
net/xl2tpd/Makefile
net/xl2tpd/files/l2tpv2.sh [moved from net/xl2tpd/files/l2tp.sh with 96% similarity]

index 7d1f932f358d90b2bb22bc692a938eef02cb7768..4e108ab809d64ad10a69d9f6a9f0bcde64ae6ff9 100644 (file)
@@ -65,7 +65,7 @@ define Package/xl2tpd/install
        $(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))
similarity index 96%
rename from net/xl2tpd/files/l2tp.sh
rename to net/xl2tpd/files/l2tpv2.sh
index 867234dbe10f552cfb4699eaa4dfe65ea2ef3e34..6466cf0be1ed7c06edb76b38e483d028a5fe55be 100644 (file)
@@ -8,7 +8,7 @@
        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"
@@ -20,7 +20,7 @@ proto_l2tp_init_config() {
        no_device=1
 }
 
-proto_l2tp_setup() {
+proto_l2tpv2_setup() {
        local config="$1"
        local iface="$2"
        local optfile="/tmp/l2tp/options.${config}"
@@ -77,7 +77,7 @@ proto_l2tp_setup() {
        xl2tpd-control connect l2tp-${config}
 }
 
-proto_l2tp_teardown() {
+proto_l2tpv2_teardown() {
        local interface="$1"
        local optfile="/tmp/l2tp/options.${interface}"
 
@@ -103,5 +103,5 @@ proto_l2tp_teardown() {
 }
 
 [ -n "$INCLUDE_ONLY" ] || {
-       add_protocol l2tp
+       add_protocol l2tpv2
 }
git clone https://git.99rst.org/PROJECT