summaryrefslogtreecommitdiffhomepage
path: root/dummy
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-10-14 00:47:17 +0200
committerFelix Fietkau <nbd@openwrt.org>2011-10-14 00:47:17 +0200
commit52c36d741c05db2350ad1d240f6bd5d72237d8fd (patch)
tree8c09e99a082490b93260f42f2e7e8e401adf22af /dummy
parentc000b546d97aa97144ee2cdf396d46a039bb7f98 (diff)
proto-shell: add dns search domains
Diffstat (limited to 'dummy')
-rwxr-xr-xdummy/netifd-proto.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/dummy/netifd-proto.sh b/dummy/netifd-proto.sh
index 0af99b2..0f703a2 100755
--- a/dummy/netifd-proto.sh
+++ b/dummy/netifd-proto.sh
@@ -59,6 +59,12 @@ proto_add_dns_server() {
jshn_append PROTO_DNS "$address"
}
+proto_add_dns_search() {
+ local address="$1"
+
+ jshn_append PROTO_DNS_SEARCH "$address"
+}
+
proto_add_ipv4_address() {
local address="$1"
local mask="$2"
@@ -133,6 +139,7 @@ proto_send_update() {
_proto_push_array "route" "$PROTO_ROUTE" _proto_push_route
_proto_push_array "route6" "$PROTO_ROUTE6" _proto_push_route
_proto_push_array "dns" "$PROTO_DNS" _proto_push_ip
+ _proto_push_array "dns_search" "$PROTO_DNS_SEARCH" _proto_push_ip
_proto_notify "$interface"
}