aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDonnie Barnes <djb@redhat.com>1999-07-22 02:41:45 +0000
committerDonnie Barnes <djb@redhat.com>1999-07-22 02:41:45 +0000
commit03d8a966e3a8c1d2c14b1714af3f57e55aee1f95 (patch)
treef128ba00e40969840dca56d9cc27ea8e1dc2cae1 /src
parentf5009f9ba7903d85e82d97df72ada4172f621a3f (diff)
downloadinitscripts-03d8a966e3a8c1d2c14b1714af3f57e55aee1f95.tar
initscripts-03d8a966e3a8c1d2c14b1714af3f57e55aee1f95.tar.gz
initscripts-03d8a966e3a8c1d2c14b1714af3f57e55aee1f95.tar.bz2
initscripts-03d8a966e3a8c1d2c14b1714af3f57e55aee1f95.tar.xz
initscripts-03d8a966e3a8c1d2c14b1714af3f57e55aee1f95.zip
added --oot option
Diffstat (limited to 'src')
-rw-r--r--src/usleep.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/usleep.c b/src/usleep.c
index 7d56599c..206d07b9 100644
--- a/src/usleep.c
+++ b/src/usleep.c
@@ -17,11 +17,14 @@ int main(int argc, char **argv) {
unsigned long count;
poptContext optCon;
int showVersion = 0;
+ int showOot = 0;
int rc;
char * countStr = NULL;
struct poptOption options[] = {
{ "version", 'v', POPT_ARG_NONE, &showVersion, 0,
"Display the version of this program, and exit" },
+ { "oot", 'o', POPT_ARG_NONE, &showOot, 0,
+ "oot says hey!" },
POPT_AUTOHELP
{ 0, 0, 0, 0, 0 }
};
@@ -42,6 +45,11 @@ int main(int argc, char **argv) {
return 0;
}
+ if (showOot) {
+ printf("oot says hey!\n");
+ return 0;
+ }
+
countStr = poptGetArg(optCon);
if (countStr == NULL) count = 1;