sleep: support "inf"

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
diff --git a/coreutils/sleep.c b/coreutils/sleep.c
index 5c9cda9..7bfaab9 100644
--- a/coreutils/sleep.c
+++ b/coreutils/sleep.c
@@ -68,6 +68,11 @@
 	if (!*argv)
 		bb_show_usage();
 
+	/* GNU sleep accepts "inf", "INF", "infinity" and "INFINITY" */
+	if (strncasecmp(argv[0], "inf", 3) == 0)
+		for (;;)
+			sleep(INT_MAX);
+
 #if ENABLE_FEATURE_FANCY_SLEEP
 # if ENABLE_FLOAT_DURATION
 	/* undo busybox.c setlocale */