Print this page
XXX Remove nawk(1)
@@ -21,12 +21,10 @@
#
#
# 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"
@@ -64,11 +62,11 @@
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) }'`
+ | /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`