Print this page
XXX Remove nawk(1)

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/svc/milestone/net-routing-setup
          +++ new/usr/src/cmd/svc/milestone/net-routing-setup
↓ open down ↓ 45 lines elided ↑ open up ↑
  46   46  # point in boot, we cannot.
  47   47  #
  48   48  /sbin/routeadm -u
  49   49  
  50   50  #
  51   51  # Are we routing dynamically? routeadm(1M) reports this in the
  52   52  # "current" values of ipv4/6-routing - if either are true, we are running
  53   53  # routing daemons (or at least they are enabled to run).
  54   54  #
  55   55  dynamic_routing_test=`/sbin/routeadm -p | \
  56      -nawk '/^ipv[46]-routing [.]*/ { print $2 }'  | /usr/bin/grep "current=enabled"`
       56 +/usr/xpg4/bin/awk '/^ipv[46]-routing [.]*/ { print $2 }'  | /usr/bin/grep "current=enabled"`
  57   57  if [ -n "$dynamic_routing_test" ]; then
  58   58          dynamic_routing="true"
  59   59  fi
  60   60  
  61   61  #
  62   62  # Configure default IPv4 routers using the local "/etc/defaultrouter"
  63   63  # configuration file.  The file can contain the hostnames or IP
  64   64  # addresses of one or more default routers.  If hostnames are used,
  65   65  # each hostname must also be listed in the local "/etc/hosts" file
  66   66  # because NIS is not running at the time that this script is
↓ open down ↓ 148 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX