Print this page
XXX Remove nawk(1)

*** 135,145 **** 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.$$ ' function writedomain() { if (updated == 0) { # Use only first domain, not a search list split(ENVIRON["dnsdomain"], d) if(length(d[1]) != 0) --- 135,145 ---- if [ ! -f /etc/resolv.conf ]; then /usr/bin/touch /etc/resolv.conf fi export dnsservers dnsdomain ! /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,227 **** # # Remove any lines with the "# Added by DHCP" tag from /etc/inet/hosts. # cleanup_hosts () { ! /usr/bin/nawk '{ if (index($0, "# Added by DHCP") == 0 || $1 == "127.0.0.1" || $1 == "::1") { print $0 } }' /etc/inet/hosts > /tmp/hosts.$$ --- 217,227 ---- # # Remove any lines with the "# Added by DHCP" tag from /etc/inet/hosts. # cleanup_hosts () { ! /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.$$