summaryrefslogtreecommitdiff
path: root/src/rc/rc-status.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2009-04-24 10:23:49 +0000
committerRoy Marples <roy@marples.name>2009-04-24 10:23:49 +0000
commitb0ac71fe2aea81ef37a35016630198f38af2d662 (patch)
treefe9835c2107c1d13079f5668f0010076fcc47b81 /src/rc/rc-status.c
parent9966a902ab375128e128edc4ca85676656b759db (diff)
downloadopenrc-b0ac71fe2aea81ef37a35016630198f38af2d662.tar.gz
openrc-b0ac71fe2aea81ef37a35016630198f38af2d662.tar.bz2
openrc-b0ac71fe2aea81ef37a35016630198f38af2d662.tar.xz
Add missing show levels switch.
Diffstat (limited to 'src/rc/rc-status.c')
-rw-r--r--src/rc/rc-status.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/rc/rc-status.c b/src/rc/rc-status.c
index 320b92c..b4b3bdb 100644
--- a/src/rc/rc-status.c
+++ b/src/rc/rc-status.c
@@ -219,6 +219,11 @@ rc_status(int argc, char **argv)
}
goto exit;
/* NOTREACHED */
+ case 'l':
+ levels = rc_runlevel_list();
+ TAILQ_FOREACH(l, levels, entries)
+ printf("%s\n", l->value);
+ goto exit;
case 'r':
runlevel = rc_runlevel_get();
printf("%s\n", runlevel);