Lines Matching refs:reboot
17 #include <linux/reboot.h>
18 #include <sys/reboot.h>
72 return reboot(type);
83 (void)UpdateMiscMessage(NULL, "reboot", NULL, NULL);
84 return DoRoot_("reboot", RB_AUTOBOOT);
96 (void)UpdateMiscMessage(NULL, "reboot", NULL, NULL);
97 DoJobNow("reboot");
101 return reboot(RB_AUTOBOOT);
119 (void)UpdateMiscMessage(NULL, "reboot", NULL, NULL);
120 const size_t len = strlen("reboot,");
121 const char *cmd = strstr(argv[0], "reboot,");
125 DoJobNow("reboot");
133 return DoRoot_("reboot", RB_POWER_OFF);
145 return DoRoot_("reboot", RB_AUTOBOOT);
159 return DoRoot_("reboot", RB_AUTOBOOT);
170 return DoRoot_("reboot", RB_AUTOBOOT);
186 const char *cmd = strstr(argv[0], "reboot,");
191 (void)UpdateMiscMessage(NULL, "reboot", NULL, NULL);
192 DoJobNow("reboot");
195 LINUX_REBOOT_CMD_RESTART2, cmd + strlen("reboot,"));
203 // add default reboot cmd
204 (void)AddCmdExecutor("reboot", DoReboot);
205 (void)AddCmdExecutor("reboot.other", DoRebootOther);