aboutsummaryrefslogtreecommitdiff
path: root/src/cmdline.opt
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2016-03-06 15:25:06 +0200
committerSergey Poznyakoff <gray@gnu.org>2016-03-06 15:27:39 +0200
commit1a37a444eea3d238e45d01d47ac157b470f536ac (patch)
tree5a992298b9cdc93c31ffce6a7db302670e8eb0b9 /src/cmdline.opt
parentad5bd6e401657b9cb0fed04d15cdc6feeef91e15 (diff)
downloadpies-1a37a444eea3d238e45d01d47ac157b470f536ac.tar.gz
pies-1a37a444eea3d238e45d01d47ac157b470f536ac.tar.bz2
Reimplement the telinit legacy interface.
pies -T is now fully compatible with the legacy telinit command * src/telinit.opt: New file. * src/Makefile.am: Add telinit.opt * src/cmdline.opt (-T): Remove explicit variable. Rest of command line is processed specially. * src/pies.h (telinit): Change prototype. * src/sysvinit.c (telinit): Rewrite. * src/.gitignore: Update. * doc/pies.texi: Document telinit.
Diffstat (limited to 'src/cmdline.opt')
-rw-r--r--src/cmdline.opt6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cmdline.opt b/src/cmdline.opt
index 7d6f7d4..d8bd02f 100644
--- a/src/cmdline.opt
+++ b/src/cmdline.opt
@@ -112,11 +112,11 @@ BEGIN
lint_mode = 1;
END
-OPTION(telinit,T,RUNLEVEL,
- [<emulate telinit command>])
+OPTION(telinit,T,,
+ [<telinit command: run "pies -T --help" for help>])
BEGIN
log_to_stderr_only = 1;
- exit (telinit (optarg));
+ exit (telinit (argc - (optind - 1), argv + (optind - 1)));
END
GROUP(Preprocessor)

Return to:

Send suggestions and report system problems to the System administrator.