diff -Nrup busybox-1.00-pre8.orig/include/usage.h busybox-1.00-pre8/include/usage.h --- busybox-1.00-pre8.orig/include/usage.h 2004-02-22 07:25:47.000000000 -0500 +++ busybox-1.00-pre8/include/usage.h 2004-06-07 16:36:32.000000000 -0400 @@ -1887,6 +1887,7 @@ "Options:\n" \ "\t-c COUNT\tSend only COUNT pings.\n" \ "\t-s SIZE\t\tSend SIZE data bytes in packets (default=56).\n" \ + "\t-w DEADLINE\tSpecify a timeout, in seconds, before ping exits.\n" \ "\t-q\t\tQuiet mode, only displays output at start\n" \ "\t\t\tand when finished." #endif diff -Nrup busybox-1.00-pre8.orig/networking/ping.c busybox-1.00-pre8/networking/ping.c --- busybox-1.00-pre8.orig/networking/ping.c 2003-07-22 04:56:51.000000000 -0400 +++ busybox-1.00-pre8/networking/ping.c 2004-06-07 16:33:04.000000000 -0400 @@ -420,6 +420,12 @@ extern int ping_main(int argc, char **ar argv++; datalen = atoi(*argv); break; + case 'w': + if (--argc <= 0) + bb_show_usage(); + argv++; + MAXWAIT = atoi(*argv); + break; default: bb_show_usage(); }