Print this page
XXX Remove nawk(1)
*** 21,32 ****
#
#
# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
- # ident "%Z%%M% %I% %E% SMI"
- #
# Start mirror resync threads.
DEVFSADM=/usr/sbin/devfsadm
METADEVADM=/usr/sbin/metadevadm
METASYNC=/usr/sbin/metasync
--- 21,30 ----
*** 55,65 ****
#
# The following command saves all of the auto-take set names
# into the TMPFILE
name_str=`gettext "Set name"`
mn_str=`gettext "Multi-owner"`
! $METASET | /bin/nawk -F ' |\t|,' -v snm="$name_str" \
-v mstr="$mn_str" '$0 ~ snm { \
if (index($0, mstr) == 0) print $4 \
}' > $TMPFILE 2>&1
if [ -s "$TMPFILE" ]; then
--- 53,63 ----
#
# The following command saves all of the auto-take set names
# into the TMPFILE
name_str=`gettext "Set name"`
mn_str=`gettext "Multi-owner"`
! $METASET | /usr/xpg4/bin/awk -F ' |\t|,' -v snm="$name_str" \
-v mstr="$mn_str" '$0 ~ snm { \
if (index($0, mstr) == 0) print $4 \
}' > $TMPFILE 2>&1
if [ -s "$TMPFILE" ]; then