Print this page
XXX Remove nawk(1)

*** 21,46 **** # # # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # - # ident "%Z%%M% %I% %E% SMI" # This script is the shared method script for the legacy ipv4/ipv6 # routing services. . /lib/svc/share/smf_include.sh daemon_prog=`/usr/sbin/svccfg -s $SMF_FMRI listprop routeadm/daemon | \ ! /usr/bin/nawk '{ for (i = 3; i <= NF; i++) printf $i" " }' | \ ! /usr/bin/nawk '{ sub(/^\"/,""); sub(/\"[ \t]*$/,""); print }'` daemon_args=`/usr/sbin/svccfg -s $SMF_FMRI listprop routeadm/daemon-args | \ ! /usr/bin/nawk '{ for (i = 3; i <= NF; i++) printf $i" " }' | \ ! /usr/bin/nawk '{ sub(/^\"/,""); sub(/\"[ \t]*$/,""); print }'` daemon_stop=`/usr/sbin/svccfg -s $SMF_FMRI listprop routeadm/daemon-stop-cmd | \ ! /usr/bin/nawk '{ for (i = 3; i <= NF; i++) printf $i" " }' | \ ! /usr/bin/nawk '{ sub(/^\"/,""); sub(/\"[ \t]*$/,""); print }'` method="$1" proto="$2" case "$method" in --- 21,45 ---- # # # Copyright 2007 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # # This script is the shared method script for the legacy ipv4/ipv6 # routing services. . /lib/svc/share/smf_include.sh daemon_prog=`/usr/sbin/svccfg -s $SMF_FMRI listprop routeadm/daemon | \ ! /usr/xpg4/bin/awk '{ for (i = 3; i <= NF; i++) printf $i" " }' | \ ! /usr/xpg4/bin/awk '{ sub(/^\"/,""); sub(/\"[ \t]*$/,""); print }'` daemon_args=`/usr/sbin/svccfg -s $SMF_FMRI listprop routeadm/daemon-args | \ ! /usr/xpg4/bin/awk '{ for (i = 3; i <= NF; i++) printf $i" " }' | \ ! /usr/xpg4/bin/awk '{ sub(/^\"/,""); sub(/\"[ \t]*$/,""); print }'` daemon_stop=`/usr/sbin/svccfg -s $SMF_FMRI listprop routeadm/daemon-stop-cmd | \ ! /usr/xpg4/bin/awk '{ for (i = 3; i <= NF; i++) printf $i" " }' | \ ! /usr/xpg4/bin/awk '{ sub(/^\"/,""); sub(/\"[ \t]*$/,""); print }'` method="$1" proto="$2" case "$method" in