From 21f4cf973f2bc72fe16e0bc5f5cba33c04a1b90e Mon Sep 17 00:00:00 2001 From: nbd Date: Mon, 12 Nov 2007 16:29:08 +0000 Subject: 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 --- package/base-files/files/lib/network/config.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'package/base-files/files/lib/network') diff --git a/package/base-files/files/lib/network/config.sh b/package/base-files/files/lib/network/config.sh index f07d92623..685658297 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 -- cgit v1.2.3