aboutsummaryrefslogtreecommitdiff
path: root/src/rc
diff options
context:
space:
mode:
Diffstat (limited to 'src/rc')
-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 320b92c8..b4b3bdbf 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);