Print this page
XXX Remove nawk(1)
@@ -28,11 +28,11 @@
# Return a list of running, non-global zones for which a shutdown via
# "/sbin/init 0" may work (typically only Solaris zones.)
#
shutdown_zones()
{
- zoneadm list -p | nawk -F: '{
+ zoneadm list -p | /usr/xpg4/bin/awk -F: '{
if ($2 != "global") {
print $2
}
}'
}
@@ -55,11 +55,11 @@
#
# Boot the installed zones for which the "autoboot" zone property is
# set and invoke the sysboot hook for all other installed zones.
#
ZONES=""
- for zone in `zoneadm list -pi | nawk -F: '{
+ for zone in `zoneadm list -pi | /usr/xpg4/bin/awk -F: '{
if ($3 == "installed") {
print $2
}
}'`; do
zonecfg -z $zone info autoboot | grep "true" >/dev/null 2>&1