projects
/
openwrt
/
staging
/
981213.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
854f0ad
)
Add a "Rebooting ..." message to the mtd util
author
Mike Baker
<mbm@openwrt.org>
Thu, 10 May 2007 08:54:37 +0000
(08:54 +0000)
committer
Mike Baker
<mbm@openwrt.org>
Thu, 10 May 2007 08:54:37 +0000
(08:54 +0000)
SVN-Revision: 7159
package/mtd/src/mtd.c
patch
|
blob
|
history
diff --git
a/package/mtd/src/mtd.c
b/package/mtd/src/mtd.c
index 1d84816751d9b5c867c1815ee36c3e277c169703..9025240e1e85059517211d0be71a8a6b0ee209ed 100644
(file)
--- 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;