/usr/share/OpenDRIM/opendrim-lmp-ethernetport/registration/OpenDRIM_RegisteredEthernetPortProfile.sh is in opendrim-lmp-ethernetport 1.1.2-0ubuntu2.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 | #!/bin/bash
################################################################################
# Linux Management Providers (LMP), EthernetPort provider package
# Copyright (C) 2008 Guillaume BOTTEX, ETRI <guillaumebottex@etri.re.kr, guillaumebottex@gmail.com>
#
# This program is being developed under the "OpenDRIM" project.
# The "OpenDRIM" project web page: http://opendrim.sourceforge.net
# The "OpenDRIM" project mailing list: opendrim@googlegroups.com
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; version 2
# of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#################################################################################
#################################################################################
# To contributors, please leave your contact information in this section
# AND comment your changes in the source code.
#
# Modified by <Author(s)>, <Affiliation>, <Year>
################################################################################
if test "$3" = pegasus
then
cimmof -aE -n $4 $6/mof/OpenDRIM_RegisteredEthernetPortProfile.mof
OUTFILE=./TEMP_REGISTRATION
cat >> $OUTFILE << EOFC
instance of PG_ProviderModule {
Caption = "OpenDRIM_RegisteredEthernetPortProfile provider module";
Name = "EthernetPort_OpenDRIM_RegisteredEthernetPortProfileModule";
Location = "cmpiEthernetPort_OpenDRIM_RegisteredEthernetPortProfileProvider";
Vendor = "$2";
Version = "$5";
InterfaceType = "CMPI";
InterfaceVersion = "2.0.0";
};
instance of PG_Provider {
Caption = "OpenDRIM_RegisteredEthernetPortProfile provider";
Name = "EthernetPort_OpenDRIM_RegisteredEthernetPortProfileProvider";
ProviderModuleName = "EthernetPort_OpenDRIM_RegisteredEthernetPortProfileModule";
};
instance of PG_ProviderCapabilities {
Caption = "OpenDRIM_RegisteredEthernetPortProfile provider capabilities";
ProviderModuleName = "EthernetPort_OpenDRIM_RegisteredEthernetPortProfileModule";
ProviderName = "EthernetPort_OpenDRIM_RegisteredEthernetPortProfileProvider";
ClassName = "OpenDRIM_RegisteredEthernetPortProfile";
ProviderType = {2};
Namespaces = {"$4"};
SupportedProperties = {"Caption", "Description", "ElementName", "InstanceID", "RegisteredOrganization", "OtherRegisteredOrganization", "RegisteredName", "RegisteredVersion", "AdvertiseTypes", "AdvertiseTypeDescriptions"};
CapabilityID = "EthernetPort_OpenDRIM_RegisteredEthernetPortProfile";
};
EOFC
cimmof -n root/PG_InterOp $OUTFILE
rm -f $OUTFILE
fi
if test "$3" = sfcb
then
OUTFILE=./OpenDRIM_RegisteredEthernetPortProfile.reg
cat >> $OUTFILE <<EOFC
[OpenDRIM_RegisteredEthernetPortProfile]
provider: EthernetPort_OpenDRIM_RegisteredEthernetPortProfileProvider
location: cmpiEthernetPort_OpenDRIM_RegisteredEthernetPortProfileProvider
type: instance
namespace: $4
#
EOFC
sfcbstage -r $OUTFILE -n $4 $6/mof/OpenDRIM_RegisteredEthernetPortProfile.mof
rm -f $OUTFILE
sfcbrepos -f
fi
if test "$3" = openwbem
then
OUTFILE=./OpenDRIM_RegisteredEthernetPortProfile-reg.mof
rm -f $OUTFILE
sed "s/Provider *( *\"cmpi:/Provider(\"cmpi::/g" < $6/mof/OpenDRIM_RegisteredEthernetPortProfile.mof >> $OUTFILE
owmofc -u http://localhost/$4 $OUTFILE
rm -f $OUTFILE
fi
|