If /etc/resolv.conf.tail exists, append to newly-constructed
authorangelos <angelos@openbsd.org>
Thu, 20 Apr 2000 08:14:21 +0000 (08:14 +0000)
committerangelos <angelos@openbsd.org>
Thu, 20 Apr 2000 08:14:21 +0000 (08:14 +0000)
/etc/resolv.conf

usr.sbin/dhcp/dhclient/scripts/dhclient-script

index 0f8d543..6b0e83d 100644 (file)
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $OpenBSD: dhclient-script,v 1.4 2000/02/11 01:23:18 chris Exp $
+# $OpenBSD: dhclient-script,v 1.5 2000/04/20 08:14:21 angelos Exp $
 #
 
 if [ x$new_network_number != x ]; then
@@ -96,6 +96,9 @@ if [ x$reason = xBOUND ] || [ x$reason = xRENEW ] || \
       for nameserver in $new_domain_name_servers; do
         echo nameserver $nameserver >>/etc/resolv.conf
       done
+      if [ -f /etc/resolv.conf.tail ]; then
+       cat /etc/resolv.conf.tail >>/etc/resolv.conf
+      fi
       exit 0
     fi
   fi
@@ -162,6 +165,9 @@ if [ x$reason = xTIMEOUT ]; then
           for nameserver in $new_domain_name_servers; do
            echo nameserver $nameserver >>/etc/resolv.conf.std
           done
+          if [ -f /etc/resolv.conf.tail ]; then
+           cat /etc/resolv.conf.tail >>/etc/resolv.conf.std
+         fi
           if [ -f /etc/resolv.conf ]; then
            rm -f /etc/resolv.conf
           fi