mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-11 19:17:22 +00:00
add support for -s option
This commit is contained in:
parent
5c846a6eb6
commit
a3a95fb770
@ -66,7 +66,7 @@
|
|||||||
# include <config.h>
|
# include <config.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define OPTION_STRING "I:hVvcgEaH:P:f:U:p:L:A:t:m:"
|
#define OPTION_STRING "I:hVvcgsEaH:P:f:U:p:L:A:t:m:"
|
||||||
|
|
||||||
int csv_output = 0;
|
int csv_output = 0;
|
||||||
int verbose = 0;
|
int verbose = 0;
|
||||||
@ -215,6 +215,7 @@ int main(int argc, char ** argv)
|
|||||||
int argflag, i;
|
int argflag, i;
|
||||||
int rc = 0;
|
int rc = 0;
|
||||||
int thump = 0;
|
int thump = 0;
|
||||||
|
int authspecial = 0;
|
||||||
|
|
||||||
/* save program name */
|
/* save program name */
|
||||||
if (!(progname = strrchr(argv[0], '/')))
|
if (!(progname = strrchr(argv[0], '/')))
|
||||||
@ -239,6 +240,9 @@ int main(int argc, char ** argv)
|
|||||||
case 'g':
|
case 'g':
|
||||||
thump = 1;
|
thump = 1;
|
||||||
break;
|
break;
|
||||||
|
case 's':
|
||||||
|
authspecial = 1;
|
||||||
|
break;
|
||||||
case 'v':
|
case 'v':
|
||||||
verbose++;
|
verbose++;
|
||||||
break;
|
break;
|
||||||
@ -334,8 +338,14 @@ int main(int argc, char ** argv)
|
|||||||
printf("Error loading interface %s\n", intfname);
|
printf("Error loading interface %s\n", intfname);
|
||||||
goto out_free;
|
goto out_free;
|
||||||
}
|
}
|
||||||
|
|
||||||
intf->thump = thump;
|
intf->thump = thump;
|
||||||
|
|
||||||
|
if (authspecial) {
|
||||||
|
intf->session->authspecial = authspecial;
|
||||||
|
ipmi_intf_session_set_authtype(intf, IPMI_SESSION_AUTHTYPE_OEM);
|
||||||
|
}
|
||||||
|
|
||||||
/* setup log */
|
/* setup log */
|
||||||
log_init(progname, 0, verbose);
|
log_init(progname, 0, verbose);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user