add checks for {ip,ip6}addr in the network config

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6099 3c298f89-4303-0410-b956-a3cf2f4a3e73
master
Felix Fietkau 2007-01-14 22:29:13 +00:00
parent edf3bfb0af
commit a455d0988c
1 changed files with 2 additions and 2 deletions

View File

@ -117,8 +117,8 @@ setup_interface() {
config_get gateway "$config" gateway config_get gateway "$config" gateway
config_get dns "$config" dns config_get dns "$config" dns
$DEBUG ifconfig "$iface" "$ipaddr" netmask "$netmask" [ -z "$ipaddr" ] || $DEBUG ifconfig "$iface" "$ipaddr" netmask "$netmask"
$DEBUG ifconfig "$iface" inet6 add "$ip6addr" [ -z "$ip6addr" ] || $DEBUG ifconfig "$iface" inet6 add "$ip6addr"
[ -z "$gateway" ] || route add default gw "$gateway" [ -z "$gateway" ] || route add default gw "$gateway"
[ -z "$dns" -o -f /tmp/resolv.conf.auto ] || { [ -z "$dns" -o -f /tmp/resolv.conf.auto ] || {
for ns in $dns; do for ns in $dns; do