mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-27 01:11:14 +00:00
6in4: delete tunnel on interface teardown
Delete tunnel on 6in4 interface teardown. Should solve problem related to tunnel stuck on restart loop with "Unknown Command" on tunnel restart due to wan connection drop. Fixes: FS#3690 Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
This commit is contained in:
parent
8b7517465b
commit
0530c490ee
@ -8,7 +8,7 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=6in4
|
PKG_NAME:=6in4
|
||||||
PKG_RELEASE:=26
|
PKG_RELEASE:=27
|
||||||
PKG_LICENSE:=GPL-2.0
|
PKG_LICENSE:=GPL-2.0
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
@ -138,6 +138,8 @@ proto_6in4_setup() {
|
|||||||
|
|
||||||
proto_6in4_teardown() {
|
proto_6in4_teardown() {
|
||||||
local cfg="$1"
|
local cfg="$1"
|
||||||
|
local link="6in4-$cfg"
|
||||||
|
ip link del $link
|
||||||
}
|
}
|
||||||
|
|
||||||
proto_6in4_init_config() {
|
proto_6in4_init_config() {
|
||||||
|
Loading…
Reference in New Issue
Block a user