ppp: propagate master peerdns setting to dynamic slave interface
[openwrt/openwrt.git] / package / network / services / ppp / files / lib / netifd / ppp6-up
index 07b6a43ca5c4cbe29f905d057cdb585511968d8f..8ad03223e593161d4aca2925ced68a6c54e25aa3 100755 (executable)
@@ -23,6 +23,7 @@ if [ -n "$AUTOIPV6" ]; then
        json_add_string proto "dhcpv6"
        [ -n "$EXTENDPREFIX" ] && json_add_string extendprefix 1
        [ -n "$IP6TABLE" ] && json_add_string ip6table $IP6TABLE
+       [ -n "$PEERDNS" ] && json_add_boolean peerdns $PEERDNS
        json_close_object
        ubus call network add_dynamic "$(json_dump)"
 fi