13 #
14 # When distributing Covered Code, include this CDDL HEADER in each
15 # file and include the License file at usr/src/CDDL.txt.
16 # If applicable, add the following below this CDDL HEADER, with the
17 # fields enclosed by brackets [] replaced with your own identifying
18 # information: Portions Copyright [yyyy] [name of copyright owner]
19 #
20 # CDDL HEADER END
21 #
22 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
23 # Use is subject to license terms.
24 #
25 #ident "%Z%%M% %I% %E% SMI"
26 #
27
28 MYNAME=$(basename ${0})
29 MYDIR=$(dirname ${0})
30 METHOD="validate"
31 MACH="$(/usr/bin/uname -p)"
32
33 case "${MACH}" in
34 i386*)
35 VM=xvm
36 PROPS="Domain_name Migration_type Plugin_probe Debug_level"
37 ;;
38 sparc*)
39 VM=ldom
40 PROPS="Domain_name Migration_type Plugin_probe Password_file Debug_level"
41 ;;
42 *)
43 ;;
44 esac
45
46 . ${MYDIR}/functions
47
48 typeset opt
49 typeset -i rc=0
50 typeset -i update=0
51
52 while getopts 'cur:x:X:g:R:G:T:' opt
|
13 #
14 # When distributing Covered Code, include this CDDL HEADER in each
15 # file and include the License file at usr/src/CDDL.txt.
16 # If applicable, add the following below this CDDL HEADER, with the
17 # fields enclosed by brackets [] replaced with your own identifying
18 # information: Portions Copyright [yyyy] [name of copyright owner]
19 #
20 # CDDL HEADER END
21 #
22 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
23 # Use is subject to license terms.
24 #
25 #ident "%Z%%M% %I% %E% SMI"
26 #
27
28 MYNAME=$(basename ${0})
29 MYDIR=$(dirname ${0})
30 METHOD="validate"
31 MACH="$(/usr/bin/uname -p)"
32
33 typeset -rx TEXTDOMAIN=SUNW_SC_XVM
34 typeset -rx TEXTDOMAINDIR=/opt/SUNWscxvm/lib/locale
35
36 case "${MACH}" in
37 i386*)
38 VM=xvm
39 PROPS="Domain_name Migration_type Plugin_probe Debug_level"
40 ;;
41 sparc*)
42 VM=ldom
43 PROPS="Domain_name Migration_type Plugin_probe Password_file Debug_level"
44 ;;
45 *)
46 ;;
47 esac
48
49 . ${MYDIR}/functions
50
51 typeset opt
52 typeset -i rc=0
53 typeset -i update=0
54
55 while getopts 'cur:x:X:g:R:G:T:' opt
|