Print this page
6774 - create-client should take imagepath as optional argument
*** 86,96 ****
"\tdisable\t[-t] <svcname>",
PRIV_REQD },
{ "create-client", do_create_client,
"\tcreate-client\t[-b <property>=<value>,...] \n"
! "\t\t\t-e <macaddr> -t <imagepath> -n <svcname>",
PRIV_REQD },
{ "delete-client", do_delete_client,
"\tdelete-client\t<macaddr>",
PRIV_REQD },
--- 86,96 ----
"\tdisable\t[-t] <svcname>",
PRIV_REQD },
{ "create-client", do_create_client,
"\tcreate-client\t[-b <property>=<value>,...] \n"
! "\t\t\t-e <macaddr> -n <svcname> [-t <imagepath>]",
PRIV_REQD },
{ "delete-client", do_delete_client,
"\tdelete-client\t<macaddr>",
PRIV_REQD },
*** 1226,1236 ****
}
/*
* Make sure required options are there
*/
! if ((mac_addr == NULL) || (svcname == NULL) || (imagepath == NULL)) {
(void) fprintf(stderr, MSG_MISSING_OPTIONS, argv[0]);
(void) fprintf(stderr, "%s\n", gettext(use));
return (INSTALLADM_FAILURE);
}
--- 1226,1236 ----
}
/*
* Make sure required options are there
*/
! if ((mac_addr == NULL) || (svcname == NULL)) {
(void) fprintf(stderr, MSG_MISSING_OPTIONS, argv[0]);
(void) fprintf(stderr, "%s\n", gettext(use));
return (INSTALLADM_FAILURE);
}