summaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authormbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-05-10 08:54:37 +0000
committermbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-05-10 08:54:37 +0000
commit2e59ffe7dee33cba63f9ed9d0d59776ff9114b7c (patch)
treee0097166e3626d06c8dcfada59185636e66edfef /package
parent7ab4d88438816cada428a75854b6591029006945 (diff)
Add a "Rebooting ..." message to the mtd util
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7159 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r--package/mtd/src/mtd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/package/mtd/src/mtd.c b/package/mtd/src/mtd.c
index 1d8481675..9025240e1 100644
--- a/package/mtd/src/mtd.c
+++ b/package/mtd/src/mtd.c
@@ -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;