From 70a973eda26b78b4674529510b4485f5e301d4a0 Mon Sep 17 00:00:00 2001 From: jow Date: Tue, 5 Jul 2011 00:53:16 +0000 Subject: [PATCH] [backfire] merge r27449 git-svn-id: svn://svn.openwrt.org/openwrt/branches/backfire@27450 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/6in4/Makefile | 4 ++-- package/6in4/files/6in4.hotplug | 5 +++++ package/6to4/Makefile | 2 +- package/6to4/files/6to4.hotplug | 5 +++++ 4 files changed, 13 insertions(+), 3 deletions(-) diff --git a/package/6in4/Makefile b/package/6in4/Makefile index 60dce9faf..65b10542e 100644 --- a/package/6in4/Makefile +++ b/package/6in4/Makefile @@ -1,5 +1,5 @@ # -# Copyright (C) 2010 OpenWrt.org +# Copyright (C) 2010-2011 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=6in4 PKG_VERSION:=9 -PKG_RELEASE:=1 +PKG_RELEASE:=2 include $(INCLUDE_DIR)/package.mk diff --git a/package/6in4/files/6in4.hotplug b/package/6in4/files/6in4.hotplug index 49667a815..9df993498 100644 --- a/package/6in4/files/6in4.hotplug +++ b/package/6in4/files/6in4.hotplug @@ -20,6 +20,11 @@ if [ "$ACTION" = ifup ]; then local wanip=$(find_6in4_wanip "$wandev") [ -n "$wanip" ] && { + lsmod | grep -q ^sit || { + logger -t 6in4-update "Tunneling driver not loaded yet, deferring action" + exit 0 + } + local tunnelid config_get tunnelid "$cfg" tunnelid diff --git a/package/6to4/Makefile b/package/6to4/Makefile index 77082a4a0..f4831a490 100644 --- a/package/6to4/Makefile +++ b/package/6to4/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=6to4 PKG_VERSION:=5 -PKG_RELEASE:=1 +PKG_RELEASE:=2 include $(INCLUDE_DIR)/package.mk diff --git a/package/6to4/files/6to4.hotplug b/package/6to4/files/6to4.hotplug index 037abd48f..1e3d26c41 100644 --- a/package/6to4/files/6to4.hotplug +++ b/package/6to4/files/6to4.hotplug @@ -20,6 +20,11 @@ if [ "$ACTION" = ifup ]; then local wanip=$(find_6to4_wanip "$wandev") [ -n "$wanip" ] && { + lsmod | grep -q ^sit || { + logger -t 6to4 "Tunneling driver not loaded yet, deferring action" + exit 0 + } + uci_set_state network "$cfg" ipaddr "$wanip" ( ifup "$cfg" )& } -- 2.35.1