Print this page
XXX Remove nawk(1)
@@ -51,11 +51,11 @@
# Are we routing dynamically? routeadm(1M) reports this in the
# "current" values of ipv4/6-routing - if either are true, we are running
# routing daemons (or at least they are enabled to run).
#
dynamic_routing_test=`/sbin/routeadm -p | \
-nawk '/^ipv[46]-routing [.]*/ { print $2 }' | /usr/bin/grep "current=enabled"`
+/usr/xpg4/bin/awk '/^ipv[46]-routing [.]*/ { print $2 }' | /usr/bin/grep "current=enabled"`
if [ -n "$dynamic_routing_test" ]; then
dynamic_routing="true"
fi
#