Print this page
XXX Remove nawk(1)

*** 21,32 **** # # # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # - # ident "%Z%%M% %I% %E% SMI" - # # Enable appropriate NIS daemons based on the current configuration. enable () { /usr/sbin/svcadm enable -t $1 [ $? = 0 ] || echo "ypstart: unable to enable $1" --- 21,30 ----
*** 64,74 **** passwdfile=/var/yp/$domain/LDAP_passwd.byname else passwdfile=/var/yp/$domain/passwd.byname fi master=`/usr/sbin/makedbm -u $passwdfile | grep YP_MASTER_NAME \ ! | nawk '{ print tolower($2) }'` fi # Enabling the YP client is not strictly necessary, but it is # traditional. state=`/usr/bin/svcprop -p restarter/state network/nis/client:default` --- 62,72 ---- passwdfile=/var/yp/$domain/LDAP_passwd.byname else passwdfile=/var/yp/$domain/passwd.byname fi master=`/usr/sbin/makedbm -u $passwdfile | grep YP_MASTER_NAME \ ! | /usr/xpg4/bin/awk '{ print tolower($2) }'` fi # Enabling the YP client is not strictly necessary, but it is # traditional. state=`/usr/bin/svcprop -p restarter/state network/nis/client:default`