Print this page
XXX Remove nawk(1)
@@ -104,11 +104,11 @@
#
# Check image release to be sure its S10.
#
image_vers="unknown"
if [[ -f $dir/var/sadm/system/admin/INST_RELEASE ]]; then
- image_vers=$(nawk -F= '{if ($1 == "VERSION") print $2}' \
+ image_vers=$(/usr/xpg4/bin/awk -F= '{if ($1 == "VERSION") print $2}' \
$dir/var/sadm/system/admin/INST_RELEASE)
fi
if [[ "$image_vers" != "10" ]]; then
log "$f_sanity_vers" "$image_vers"
@@ -137,11 +137,11 @@
# Check the core kernel pkg for the required KU patch.
#
found=0
for i in $dir/var/sadm/pkg/SUNWcakr*/pkginfo
do
- patches=$(nawk -F= '{if ($1 == "PATCHLIST") print $2}' $i)
+ patches=$(/usr/xpg4/bin/awk -F= '{if ($1 == "PATCHLIST") print $2}' $i)
for patch in $patches
do
if [[ $patch == $req_patch ]]; then
found=1
break
@@ -311,11 +311,11 @@
#
get_inst_uuid()
{
typeset ZONENAME="$1"
- ZONEUUID=`zoneadm -z $ZONENAME list -p | nawk -F: '{print $5}'`
+ ZONEUUID=`zoneadm -z $ZONENAME list -p | /usr/xpg4/bin/awk -F: '{print $5}'`
[[ $? -ne 0 || -z $ZONEUUID ]] && return 1
INSTANCE_UUID="urn:st:${ZONEUUID}"
return 0
}