rewrite resolv.conf after interface up setting updates
authorFelix Fietkau <nbd@openwrt.org>
Wed, 5 Dec 2012 13:26:09 +0000 (14:26 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Wed, 5 Dec 2012 13:27:30 +0000 (14:27 +0100)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
interface-ip.c

index d5488efafbe18fbd32d5d602262601484f5d2046..f62d670deeea0111c5b924dc96e1954d91b2d2bd 100644 (file)
@@ -617,6 +617,7 @@ interface_ip_update_complete(struct interface_ip_settings *ip)
        vlist_simple_flush(&ip->dns_search);
        vlist_flush(&ip->route);
        vlist_flush(&ip->addr);
+       interface_write_resolv_conf();
 }
 
 void