diff options
author | Felix Fietkau <nbd@openwrt.org> | 2007-11-12 16:29:08 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2007-11-12 16:29:08 +0000 |
commit | 3937f1653c7f22f3cd5227ee39588d4d850dba1d (patch) | |
tree | ccc0e062c79ce9d3d473262c32677d1681e840df /package/base-files | |
parent | bba9e43dd60e175544d345061ca7aa06e3b056bd (diff) | |
download | master-187ad058-3937f1653c7f22f3cd5227ee39588d4d850dba1d.tar.gz master-187ad058-3937f1653c7f22f3cd5227ee39588d4d850dba1d.tar.bz2 master-187ad058-3937f1653c7f22f3cd5227ee39588d4d850dba1d.zip |
add support for interfaces with ipv6, but no ipv4 (patch from #2695)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9545 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files')
-rwxr-xr-x | package/base-files/files/lib/network/config.sh | 4 |
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 |