projects
/
openwrt
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ee56e9e
)
link default routes added by the network scripts to the appropriate interface (#2621)
author
Felix Fietkau
<nbd@openwrt.org>
Wed, 30 Jul 2008 22:49:25 +0000
(22:49 +0000)
committer
Felix Fietkau
<nbd@openwrt.org>
Wed, 30 Jul 2008 22:49:25 +0000
(22:49 +0000)
SVN-Revision: 12027
package/base-files/files/lib/network/config.sh
patch
|
blob
|
history
diff --git
a/package/base-files/files/lib/network/config.sh
b/package/base-files/files/lib/network/config.sh
index 3d58c63f78ec057434aaffd0463757ba36c9c526..b3e9fed3fbc19a8bfe902b8c73abaa80baf506ed 100755
(executable)
--- a/
package/base-files/files/lib/network/config.sh
+++ b/
package/base-files/files/lib/network/config.sh
@@
-184,8
+184,8
@@
setup_interface() {
[ -z "$ipaddr" ] || $DEBUG ifconfig "$iface" "$ipaddr" netmask "$netmask" broadcast "${bcast:-+}"
[ -z "$ip6addr" ] || $DEBUG ifconfig "$iface" add "$ip6addr"
[ -z "$ipaddr" ] || $DEBUG ifconfig "$iface" "$ipaddr" netmask "$netmask" broadcast "${bcast:-+}"
[ -z "$ip6addr" ] || $DEBUG ifconfig "$iface" add "$ip6addr"
- [ -z "$gateway" ] || $DEBUG route add default gw "$gateway"
- [ -z "$ip6gw" ] || $DEBUG route -A inet6 add default gw "$ip6gw"
+ [ -z "$gateway" ] || $DEBUG route add default gw "$gateway"
dev "$iface"
+ [ -z "$ip6gw" ] || $DEBUG route -A inet6 add default gw "$ip6gw"
dev "$iface"
[ -z "$dns" ] || {
for ns in $dns; do
grep "$ns" /tmp/resolv.conf.auto 2>/dev/null >/dev/null || {
[ -z "$dns" ] || {
for ns in $dns; do
grep "$ns" /tmp/resolv.conf.auto 2>/dev/null >/dev/null || {