Print this page
XXX Remove nawk(1)

@@ -22,22 +22,20 @@
 #
 
 # Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 
-#pragma ident   "%Z%%M% %I%     %E% SMI"
-
 #
 # basic setup
 #
 GRUBDISKMAP=/var/run/solaris_grubdisk.map
 
 /bin/rm -f "$GRUBDISKMAP"
 /bin/touch "$GRUBDISKMAP"
 /sbin/biosdev 2> /dev/null | while read diskno diskpath
     do
-        devname=`/bin/ls -l /dev/rdsk/*p0 | /bin/grep $diskpath | /bin/nawk '{ print $9 }'`
+        devname=`/bin/ls -l /dev/rdsk/*p0 | /bin/grep $diskpath | /usr/xpg4/bin/awk '{ print $9 }'`
         ctdname=`echo $devname | /bin/sed "s#/dev/rdsk/##" | /bin/sed "s#p0##"`
         grubdisk=`echo $diskno | /bin/sed "s/0x8//"`
         echo "$grubdisk $ctdname $diskpath" >> "$GRUBDISKMAP"
     done