summaryrefslogtreecommitdiffstats
path: root/sbin/dhclient/dhclient-script
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/dhclient/dhclient-script')
-rw-r--r--sbin/dhclient/dhclient-script4
1 files changed, 3 insertions, 1 deletions
diff --git a/sbin/dhclient/dhclient-script b/sbin/dhclient/dhclient-script
index 826d83c..b066400 100644
--- a/sbin/dhclient/dhclient-script
+++ b/sbin/dhclient/dhclient-script
@@ -201,7 +201,9 @@ add_new_resolv_conf() {
local tmpres=/var/run/resolv.conf.${interface}
rm -f $tmpres
- if [ -n "$new_domain_name" ]; then
+ if [ -n "$new_domain_search" ]; then
+ echo "search $new_domain_search" >>$tmpres
+ elif [ -n "$new_domain_name" ]; then
echo "search $new_domain_name" >>$tmpres
fi
OpenPOWER on IntegriCloud