mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-01-11 20:50:15 +02:00
[backfire] merge r22003
git-svn-id: svn://svn.openwrt.org/openwrt/branches/backfire@22004 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
5e2a0339ce
commit
d0472aaea3
@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
|
||||
include $(INCLUDE_DIR)/kernel.mk
|
||||
|
||||
PKG_NAME:=base-files
|
||||
PKG_RELEASE:=43.1
|
||||
PKG_RELEASE:=43.2
|
||||
|
||||
PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/
|
||||
|
||||
|
@ -13,6 +13,7 @@ add_route() {
|
||||
config_get netmask "$config" netmask
|
||||
config_get gateway "$config" gateway
|
||||
config_get metric "$config" metric
|
||||
config_get mtu "$config" mtu
|
||||
|
||||
# make sure there is a gateway and a target
|
||||
[ -n "$target" ] || {
|
||||
@ -33,7 +34,8 @@ add_route() {
|
||||
dest="${dest:--host "$target"}"
|
||||
|
||||
/sbin/route add $dest ${gateway:+gw "$gateway"} \
|
||||
${dev:+dev "$dev"} ${metric:+ metric "$metric"}
|
||||
${dev:+dev "$dev"} ${metric:+ metric "$metric"} \
|
||||
${mtu:+mss "$mtu"}
|
||||
}
|
||||
|
||||
add_route6() {
|
||||
@ -50,6 +52,7 @@ add_route6() {
|
||||
config_get target "$config" target
|
||||
config_get gateway "$config" gateway
|
||||
config_get metric "$config" metric
|
||||
config_get mtu "$config" mtu
|
||||
|
||||
# make sure there is a gateway and a target
|
||||
[ -n "$target" ] || {
|
||||
@ -61,7 +64,8 @@ add_route6() {
|
||||
}
|
||||
|
||||
/sbin/route -A inet6 add $target ${gateway:+gw "$gateway"} \
|
||||
${dev:+dev "$dev"} ${metric:+ metric "$metric"}
|
||||
${dev:+dev "$dev"} ${metric:+ metric "$metric"} \
|
||||
${mtu:+mss "$mtu"}
|
||||
}
|
||||
|
||||
case "$ACTION" in
|
||||
|
Loading…
Reference in New Issue
Block a user