Forward port whiterussian resolv.conf changes
[openwrt.git] / package / base-files / files / lib / network / config.sh
index 8188203..f3ead6a 100755 (executable)
@@ -103,7 +103,7 @@ setup_interface() {
        
        # Interface settings
        config_get mtu "$config" mtu
-       config_get macddr "$config" macaddr
+       config_get macaddr "$config" macaddr
        $DEBUG ifconfig "$iface" ${macaddr:+hw ether "$macaddr"} ${mtu:+mtu $mtu} up
 
        pidfile="/var/run/$iface.pid"
@@ -118,10 +118,11 @@ setup_interface() {
                        config_get dns "$config" dns
                        
                        $DEBUG ifconfig "$iface" "$ipaddr" netmask "$netmask"
+                       $DEBUG ifconfig "$iface" inet6 add "$ip6addr" 
                        [ -z "$gateway" ] || route add default gw "$gateway"
-                       [ -z "$dns" -o -f /tmp/resolv.conf ] || {
+                       [ -z "$dns" -o -f /tmp/resolv.conf.auto ] || {
                                for ns in $dns; do
-                                       echo "nameserver $ns" >> /tmp/resolv.conf
+                                       echo "nameserver $ns" >> /tmp/resolv.conf.auto
                                done
                        }