Show different message if no upload requests were received
authorJoseph C. Lehner <joseph.c.lehner@gmail.com>
Sat, 13 Feb 2016 23:04:03 +0000 (00:04 +0100)
committerJoseph C. Lehner <joseph.c.lehner@gmail.com>
Sat, 13 Feb 2016 23:04:03 +0000 (00:04 +0100)
nmrp.c

diff --git a/nmrp.c b/nmrp.c
index f307a9d564fed9a3f4cbb0ca1692a55dd2fe3ec2..ff4aeb7ac430ece23ed7d00c04615365fb879c20 100644 (file)
--- a/nmrp.c
+++ b/nmrp.c
@@ -634,7 +634,11 @@ int nmrp_do(struct nmrpd_args *args)
 
        status = 0;
 
-       printf("Reboot your device now.\n");
+       if (ulreqs) {
+               printf("Reboot your device now.\n");
+       } else {
+               printf("No upload request received.\n");
+       }
 
 out:
        signal(SIGINT, sigh_orig);