3
#################################################################################
4
# Linux Management Providers (LMP), SSH provider package
5
# Copyright (C) 2010 Feng Zhanlei, REDFLAG <fengzhanlei@redflag-linux.com>
7
# This program is being developed under the "OpenDRIM" project.
8
# The "OpenDRIM" project web page: http://opendrim.sourceforge.net
9
# The "OpenDRIM" project mailing list: opendrim@googlegroups.com
11
# This program is free software; you can redistribute it and/or
12
# modify it under the terms of the GNU General Public License
13
# as published by the Free Software Foundation; version 2
16
# This program is distributed in the hope that it will be useful,
17
# but WITHOUT ANY WARRANTY; without even the implied warranty of
18
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
# GNU General Public License for more details.
21
# You should have received a copy of the GNU General Public License
22
# along with this program; if not, write to the Free Software
23
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24
#################################################################################
26
#################################################################################
27
# To contributors, please leave your contact information in this section
28
# AND comment your changes in the source code.
30
# Modified by Guillaume BOTTEX <guillaumebottex@uxsystem.net>, UXSystem, 2010
31
#################################################################################
33
if test "$2" = pegasus
36
cimprovider -d -m SSH_OpenDRIM_HostedSSHAccessPointModule
37
cimprovider -r -m SSH_OpenDRIM_HostedSSHAccessPointModule
39
OUTFILE=./TEMP_REGISTRATION
41
cat >> $OUTFILE <<EOFC
42
<?xml version="1.0" encoding="utf-8" ?>
43
<CIM CIMVERSION="2.0" DTDVERSION="2.0">
44
<MESSAGE ID="1" PROTOCOLVERSION="1.0">
46
<IMETHODCALL NAME="DeleteClass">
51
index=`expr index $namespace /`
55
namespaceFragment=${namespace:0:index-1}
56
namespace=${namespace:index:${#namespace}-index}
57
index=`expr index $namespace /`
58
cat >> $OUTFILE <<EOFC
59
<NAMESPACE NAME="$namespaceFragment"></NAMESPACE>
63
cat >> $OUTFILE <<EOFC
64
<NAMESPACE NAME="$namespace"></NAMESPACE>
67
cat >> $OUTFILE <<EOFC
69
<IPARAMVALUE NAME="ClassName">
70
<CLASSNAME NAME="OpenDRIM_HostedSSHAccessPoint"/>
79
PATH=$PATH:$PEGASUS_HOME/bin
89
OUTFILE=./OpenDRIM_HostedSSHAccessPoint.reg
91
cat >> $OUTFILE <<EOFC
92
[OpenDRIM_HostedSSHAccessPoint]
93
provider: SSH_OpenDRIM_HostedSSHAccessPointProvider
94
location: cmpiSSH_OpenDRIM_HostedSSHAccessPointProvider
95
type: instance association
100
sfcbunstage -r $OUTFILE -n $1 OpenDRIM_HostedSSHAccessPoint.mof
108
if test "$2" = openwbem
111
OUTFILE=./OpenDRIM_HostedSSHAccessPoint-reg.mof
113
sed "s/Provider *( *\"cmpi:/Provider(\"cmpi::/g" < $4/mof/OpenDRIM_HostedSSHAccessPoint.mof >> $OUTFILE
114
owmofc -u http://localhost/$1 -r $OUTFILE