aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-11-12 16:29:08 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-11-12 16:29:08 +0000
commit071a9070152fd92d4c095d2dbab76210886e33c6 (patch)
tree93e0f8dea1246d788567eca172b8beb9e9ea714f
parent3e64dbb862a65aeb054337c0aa757ae022709f91 (diff)
downloadupstream-071a9070152fd92d4c095d2dbab76210886e33c6.tar.gz
upstream-071a9070152fd92d4c095d2dbab76210886e33c6.tar.bz2
upstream-071a9070152fd92d4c095d2dbab76210886e33c6.zip
add support for interfaces with ipv6, but no ipv4 (patch from #2695)
SVN-Revision: 9545
-rwxr-xr-xpackage/base-files/files/lib/network/config.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/package/base-files/files/lib/network/config.sh b/package/base-files/files/lib/network/config.sh
index f07d92623f..6856582974 100755
--- 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