From 4725d80d4d6296769243d4696f5797b60c2582f1 Mon Sep 17 00:00:00 2001 From: Mike Baker Date: Thu, 10 May 2007 08:54:37 +0000 Subject: Add a "Rebooting ..." message to the mtd util git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7159 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/mtd/src/mtd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'package/mtd/src') diff --git a/package/mtd/src/mtd.c b/package/mtd/src/mtd.c index 1d84816751..9025240e1e 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; -- cgit v1.2.3