projects
/
openwrt
/
staging
/
hauke.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e64dbb
)
add support for interfaces with ipv6, but no ipv4 (patch from #2695)
author
Felix Fietkau
<nbd@openwrt.org>
Mon, 12 Nov 2007 16:29:08 +0000
(16:29 +0000)
committer
Felix Fietkau
<nbd@openwrt.org>
Mon, 12 Nov 2007 16:29:08 +0000
(16:29 +0000)
SVN-Revision: 9545
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 f07d92623f2972125371e6b1ff4b81679f879b9f..6856582974df089dee35ed58aef41cb392797496 100755
(executable)
--- a/
package/base-files/files/lib/network/config.sh
+++ b/
package/base-files/files/lib/network/config.sh
@@
-146,9
+146,9
@@
setup_interface() {
static)
config_get ipaddr "$config" ipaddr
config_get netmask "$config" netmask
- [ -z "$ipaddr" -o -z "$netmask" ] && return 1
-
config_get ip6addr "$config" ip6addr
+ [ -z "$ipaddr" -o -z "$netmask" ] && [ -z "$ip6addr" ] && return 1
+
config_get gateway "$config" gateway
config_get dns "$config" dns
config_get bcast "$config" broadcast