diff options
author | Mike Baker <mbm@openwrt.org> | 2007-05-10 08:54:37 +0000 |
---|---|---|
committer | Mike Baker <mbm@openwrt.org> | 2007-05-10 08:54:37 +0000 |
commit | 9a66abf108abb148a6fcb5b1f0a2e7ff4ca8c252 (patch) | |
tree | 99f790f4bd2fa6b60b6fba8642ac6474a1a394de /package/mtd/src | |
parent | 854f0ad080f5607cd4041ed91437145d2a06579c (diff) | |
download | mtk-20170518-9a66abf108abb148a6fcb5b1f0a2e7ff4ca8c252.zip mtk-20170518-9a66abf108abb148a6fcb5b1f0a2e7ff4ca8c252.tar.gz mtk-20170518-9a66abf108abb148a6fcb5b1f0a2e7ff4ca8c252.tar.bz2 |
Add a "Rebooting ..." message to the mtd util
SVN-Revision: 7159
Diffstat (limited to 'package/mtd/src')
-rw-r--r-- | package/mtd/src/mtd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/package/mtd/src/mtd.c b/package/mtd/src/mtd.c index 1d84816..9025240 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; |