os-cmpi-xen

diff provider-register.sh @ 28:6137ddada5ca

Updated postinstall target to install necessary XenCIM schema in Interop and host instrumentation namespaces. Updated README.

Signed-off-by: Jim Fehlig <jfehlig@novell.com>
author jfehlig@jfehlig1.provo.novell.com
date Mon Oct 16 15:31:13 2006 -0600 (2006-10-16)
parents bdf24cd56bed
children
line diff
     1.1 --- a/provider-register.sh	Fri Oct 06 16:49:56 2006 -0600
     1.2 +++ b/provider-register.sh	Mon Oct 16 15:31:13 2006 -0600
     1.3 @@ -172,6 +172,11 @@ pegasus_install()
     1.4  	state=inactive
     1.5      fi
     1.6  
     1.7 +    if test x$namespace != x
     1.8 +    then
     1.9 +	CIMMOF="$CIMMOF -n $namespace"
    1.10 +    fi
    1.11 +
    1.12      mofpath=
    1.13      mymofs=
    1.14      mregs=
    1.15 @@ -212,7 +217,7 @@ pegasus_install()
    1.16      if pegasus_transform $_REGFILENAME $myregs
    1.17      then
    1.18  	chatter Registering providers with $state cimserver
    1.19 -	$CIMMOF -uc -I $mofpath -n root/cimv2 $mymofs &&
    1.20 +	$CIMMOF -uc -I $mofpath $mymofs &&
    1.21  	$CIMMOF -uc -n root/PG_Interop $_REGFILENAME
    1.22      else
    1.23  	echo "Failed to build pegasus registration MOF." >&2
    1.24 @@ -503,6 +508,11 @@ openwbem_install()
    1.25  	CIMMOF="$CIMMOF -s /usr/share/mof/cim-current"
    1.26      fi
    1.27  
    1.28 +    if test x$namespace != x
    1.29 +    then
    1.30 +	CIMMOF="$CIMMOF -n $namespace"
    1.31 +    fi
    1.32 +
    1.33      for _TEMPDIR in /var/tmp /tmp
    1.34      do
    1.35        if test -w $_TEMPDIR
    1.36 @@ -587,7 +597,7 @@ cim_server()
    1.37  
    1.38  usage() 
    1.39  {
    1.40 -    echo "usage: $0 [-h] [-v] [-d] [-t <cimserver>] -r regfile ... -m mof ..."
    1.41 +    echo "usage: $0 [-h] [-v] [-d] [-t <cimserver>] [-n <namespace>] -r regfile ... -m mof ..."
    1.42  }
    1.43  
    1.44  chatter()
    1.45 @@ -631,7 +641,7 @@ gb_getopt()
    1.46  }
    1.47  
    1.48  prepargs=`gb_getopt $*`
    1.49 -args=`getopt dvht:r: $prepargs`
    1.50 +args=`getopt dvht:n:r: $prepargs`
    1.51  rc=$?
    1.52  
    1.53  if [ $rc = 127 ]
    1.54 @@ -658,6 +668,8 @@ do
    1.55  	  shift;;
    1.56        -t) cimserver=$2;
    1.57  	  shift 2;;
    1.58 +      -n) namespace=$2;
    1.59 +	  shift 2;;
    1.60        -r) regs="$regs $2";
    1.61  	  shift 2;;
    1.62        --) shift;
    1.63 @@ -675,6 +687,7 @@ then
    1.64      echo -e "\t-v verbose mode"
    1.65      echo -e "\t-d deregister provider and uninstall schema"
    1.66      echo -e "\t-t specify cimserver type (pegasus|sfcb|openwbem|sniacimom)"
    1.67 +    echo -e "\t-n specify namespace"
    1.68      echo -e "\t-r specify registration files"
    1.69      echo -e "\t-m specify schema mof files"
    1.70      echo