5 bool do_restart (int argc, const char **argv UNUSED, struct ngadmin *nga UNUSED)
8 const struct swi_attr *sa;
13 printf("this command takes no argument\n");
18 sa = ngadmin_getCurrentSwitch(nga);
20 printf("must be logged\n");
25 printf("The switch will be restarted. Continue ? [y/N]: ");
28 if (fgets(line, sizeof(line), stdin) != NULL && strcasecmp(line, "y\n") == 0) {
29 i = ngadmin_restart(nga);