mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-27 21:18:26 +02:00
Add a "Rebooting ..." message to the mtd util
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7159 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
7ab4d88438
commit
2e59ffe7de
@ -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…
Reference in New Issue
Block a user