mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-23 22:34:04 +02:00
[package] 6in4, 6to4: prevent starting the tunnel if kmod-sit is not yet loaded (#9643)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27449 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
b18307a84f
commit
53d65a1c4a
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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" )&
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user