Add a "Rebooting ..." message to the mtd util

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7159 3c298f89-4303-0410-b956-a3cf2f4a3e73
master
Mike Baker 2007-05-10 08:54:37 +00:00
parent 2103ad58c0
commit 4725d80d4d
1 changed files with 2 additions and 1 deletions

View File

@ -456,7 +456,8 @@ int main (int argc, char **argv)
sync();
if (boot) {
fflush(stdout);
fprintf(stderr, "Rebooting ...\n");
fflush(stderr);
syscall(SYS_reboot,LINUX_REBOOT_MAGIC1,LINUX_REBOOT_MAGIC2,LINUX_REBOOT_CMD_RESTART,NULL);
}
return 0;