projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[feeds] add support for darcs-based feeds
[openwrt.git]
/
package
/
base-files
/
files
/
etc
/
hotplug.d
/
iface
/
10-routes
diff --git
a/package/base-files/files/etc/hotplug.d/iface/10-routes
b/package/base-files/files/etc/hotplug.d/iface/10-routes
index
14fb75e
..
3e0bebb
100644
(file)
--- a/
package/base-files/files/etc/hotplug.d/iface/10-routes
+++ b/
package/base-files/files/etc/hotplug.d/iface/10-routes
@@
-13,6
+13,7
@@
add_route() {
config_get netmask "$config" netmask
config_get gateway "$config" gateway
config_get metric "$config" metric
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" ] || {
# 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"} \
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() {
}
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 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" ] || {
# 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"} \
}
/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
}
case "$ACTION" in
This page took
0.024212 seconds
and
4
git commands to generate.