5 bool do_restart (int nb UNUSED, const char **com UNUSED, struct ngadmin *nga UNUSED)
8 const struct swi_attr *sa;
12 sa = ngadmin_getCurrentSwitch(nga);
14 printf("must be logged\n");
19 printf("The switch will be restarted. Continue ? [y/N]: ");
22 if (fgets(line, sizeof(line), stdin) != NULL && strcasecmp(line, "y\n") == 0) {
23 i = ngadmin_restart(nga);