Changes of Revision 117
[-] [+] | Changed | inventory-system.changes |
[-] [+] | Changed | inventory-system.spec ^ |
[-] [+] | 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} +} |