mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 10:37:22 +00:00
Merge commit '2f5789750183d4ef8be125b8cb32019441dd0530'
Return codes of functions should be either used or evaluated - always. This merge is necessary for shell scripting to, eg. signal there was an error during execution.
This commit is contained in:
commit
2d79e69f5f
@ -273,22 +273,22 @@ ipmi_delloem_main(struct ipmi_intf * intf, int argc, char ** argv)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
if (0 ==strncmp(argv[current_arg], "lcd\0", 4)) {
|
if (0 ==strncmp(argv[current_arg], "lcd\0", 4)) {
|
||||||
ipmi_delloem_lcd_main(intf,argc,argv);
|
rc = ipmi_delloem_lcd_main(intf,argc,argv);
|
||||||
} else if (strncmp(argv[current_arg], "mac\0", 4) == 0) {
|
} else if (strncmp(argv[current_arg], "mac\0", 4) == 0) {
|
||||||
/* mac address*/
|
/* mac address*/
|
||||||
ipmi_delloem_mac_main(intf,argc,argv);
|
rc = ipmi_delloem_mac_main(intf,argc,argv);
|
||||||
} else if (strncmp(argv[current_arg], "lan\0", 4) == 0) {
|
} else if (strncmp(argv[current_arg], "lan\0", 4) == 0) {
|
||||||
/* lan address*/
|
/* lan address*/
|
||||||
ipmi_delloem_lan_main(intf,argc,argv);
|
rc = ipmi_delloem_lan_main(intf,argc,argv);
|
||||||
} else if (strncmp(argv[current_arg], "setled\0", 7) == 0) {
|
} else if (strncmp(argv[current_arg], "setled\0", 7) == 0) {
|
||||||
/* SetLED support */
|
/* SetLED support */
|
||||||
ipmi_delloem_setled_main(intf,argc,argv);
|
rc = ipmi_delloem_setled_main(intf,argc,argv);
|
||||||
} else if (strncmp(argv[current_arg], "powermonitor\0", 13) == 0) {
|
} else if (strncmp(argv[current_arg], "powermonitor\0", 13) == 0) {
|
||||||
/*Powermanagement report processing*/
|
/*Powermanagement report processing*/
|
||||||
ipmi_delloem_powermonitor_main(intf,argc,argv);
|
rc = ipmi_delloem_powermonitor_main(intf,argc,argv);
|
||||||
} else if (strncmp(argv[current_arg], "vFlash\0", 7) == 0) {
|
} else if (strncmp(argv[current_arg], "vFlash\0", 7) == 0) {
|
||||||
/* vFlash Support */
|
/* vFlash Support */
|
||||||
ipmi_delloem_vFlash_main(intf,argc,argv);
|
rc = ipmi_delloem_vFlash_main(intf,argc,argv);
|
||||||
} else {
|
} else {
|
||||||
usage();
|
usage();
|
||||||
return -1;
|
return -1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user