Changes of Revision 117
[-] | Changed | inventory-system.changes |
x 1
2 ------------------------------------------------------------------- 3 +Tue Mar 4 16:00:43 UTC 2014 - cs@linux-administrator.com 4 + 5 +- add new functions 6 + * get_baseboard_manufacturer 7 + * get_baseboard_productname 8 + 9 +------------------------------------------------------------------- 10 Thu Nov 15 20:09:00 UTC 2012 - cs@linux-administrator.com 11 12 - disable cups 13 |
||
[-] | Changed | inventory-system.spec ^ |
25 1
2 Source0: %{pkgname}-%{version}.tar.bz2 3 Source1: %{name}.conf 4 Source2: addon-functions.sh 5 +Source3: mainboard-functions.sh 6 BuildRoot: %{_tmppath}/%{name}-%{version}-root 7 %if 0%{?suse_version} 8 %define wwwdir /srv/www/inventory-system 9
10 %__install -d %{buildroot}/%{wwwdir} 11 %__install -m644 server/*.php %{buildroot}/%{wwwdir}/ 12 %__install -D -m755 %{S:2} %{buildroot}%{_sysconfdir}/inventory-system.d/addon-functions.sh 13 +%__install -D -m755 %{S:3} %{buildroot}%{_sysconfdir}/inventory-system.d/mainboard-functions.sh 14 15 %clean 16 rm -rf %{buildroot} 17
18 %{_sysconfdir}/cron.d/inventory-system 19 %dir %{_sysconfdir}/inventory-system.d 20 %{_sysconfdir}/inventory-system.d/addon-functions.sh 21 +%{_sysconfdir}/inventory-system.d/mainboard-functions.sh 22 %{_sbindir}/%{name} 23 24 %files server 25 |
||
[+] | Changed | debian.rules ^ |
@@ -45,6 +45,7 @@ install -D -m644 client/cron.reboot $(DESTDIR)/etc/cron.d/inventory-system install -D -m644 ../SOURCES/inventory-system.conf $(DESTDIR)/etc/inventory-system.conf install -D -m755 ../SOURCES/addon-functions.sh $(DESTDIR)/etc/inventory-system.d/addon-functions.sh + install -D -m755 ../SOURCES/mainboard-functions.sh $(DESTDIR)/etc/inventory-system.d/mainboard-functions.sh # --- end custom part for installing # Build architecture-independent files here. | ||
[+] | Changed | inventory-system.conf ^ |
@@ -22,7 +22,7 @@ ## Type: string ## Default: "" # -CUSTOM_FUNCTIONS="get_system_type_osimage" +CUSTOM_FUNCTIONS="get_system_type_osimage get_baseboard_manufacturer get_baseboard_productname" # ## Description: Disable listed functions (space separated) ## Type: string | ||
[+] | Added | mainboard-functions.sh ^ |
@@ -0,0 +1,13 @@ +# get mainboard manufacturer +function get_baseboard_manufacturer { + BMANUF=`${DMIDECODE} -s baseboard-manufacturer` + debug "BASEBOARD-MANUFACTURER: ${BMANUF}" + echo ${BMANUF} +} + +#get mainboard product name +function get_baseboard_productname { + BPROD=`${DMIDECODE} -s baseboard-product-name` + debug "BASEBOARD-PRODUCT-NAME: ${BPROD}" + echo ${BPROD} +} |