#!/bin/sh
# resolvconf support by Mattias Guns, May 2006.

if [ -n "$new_domain_name" -o -n "$new_domain_name_servers" ]; then
    new_resolv_conf=/etc/resolv_ipv6.conf
    tmp_resolv_conf=/etc/resolv_ipv6.conf.tmp
    rm -f $new_resolv_conf
    if [ -n "$new_domain_name" ]; then
        echo search $new_domain_name >> $new_resolv_conf
    fi
    if [ -n "$new_domain_name_servers" ]; then
        for nameserver in $new_domain_name_servers; do
            echo nameserver $nameserver >> $new_resolv_conf
        done
    fi
    cp -f $new_resolv_conf $tmp_resolv_conf
fi
/etc/wide-dhcpv6/dhcp6c-ip-Obtained.sh &

exit 0
