Print this page
XXX Remove nawk(1)

@@ -135,11 +135,11 @@
 
         if [ ! -f /etc/resolv.conf ]; then
                 /usr/bin/touch /etc/resolv.conf
         fi
         export dnsservers dnsdomain
-        /usr/bin/nawk </etc/resolv.conf >/tmp/resolv.conf.$$ '
+        /usr/xpg4/bin/awk </etc/resolv.conf >/tmp/resolv.conf.$$ '
                 function writedomain() {
                         if (updated == 0) {
                                 # Use only first domain, not a search list
                                 split(ENVIRON["dnsdomain"], d)
                                 if(length(d[1]) != 0)

@@ -217,11 +217,11 @@
 #
 # Remove any lines with the "# Added by DHCP" tag from /etc/inet/hosts.
 #
 cleanup_hosts ()
 {
-        /usr/bin/nawk '{
+        /usr/xpg4/bin/awk '{
                 if (index($0, "# Added by DHCP") == 0 ||
                     $1 == "127.0.0.1" || $1 == "::1") {
                         print $0
                 }
         }' /etc/inet/hosts > /tmp/hosts.$$