Print this page
XXX Remove nawk(1)
@@ -20,12 +20,10 @@
# CDDL HEADER END
#
# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
-#ident "%Z%%M% %I% %E% SMI"
-#
# zoneshare -- share zone resources
# Processes a non-global zone's dfstab file after translating
# its zone-relative pathnames to global zone pathnames
@@ -74,8 +72,8 @@
while read line # get complete lines
do
echo $line
done < $infile |
- `egrep -v "(^[#])" | nawk -v rootpath=$rootpath \
+ `egrep -v "(^[#])" | /usr/xpg4/bin/awk -v rootpath=$rootpath \
'/share/ { ORS = " "; for (i = 1; i < NF; i++) print $i ; \
print rootpath $NF ";" } ' | /sbin/sh`