mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-31 00:24:12 +00:00
Add a "Rebooting ..." message to the mtd util
SVN-Revision: 7159
This commit is contained in:
parent
854f0ad080
commit
9a66abf108
@ -456,7 +456,8 @@ int main (int argc, char **argv)
|
|||||||
sync();
|
sync();
|
||||||
|
|
||||||
if (boot) {
|
if (boot) {
|
||||||
fflush(stdout);
|
fprintf(stderr, "Rebooting ...\n");
|
||||||
|
fflush(stderr);
|
||||||
syscall(SYS_reboot,LINUX_REBOOT_MAGIC1,LINUX_REBOOT_MAGIC2,LINUX_REBOOT_CMD_RESTART,NULL);
|
syscall(SYS_reboot,LINUX_REBOOT_MAGIC1,LINUX_REBOOT_MAGIC2,LINUX_REBOOT_CMD_RESTART,NULL);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user