rc-update: sort "show" output

X-Gentoo-Bug: 367305
X-Gentoo-Bug-URL: http://bugs.gentoo.org/367305
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
Mike Frysinger 2011-05-28 12:11:37 -04:00
parent 227f831639
commit 11d8b70d74

View File

@ -164,6 +164,7 @@ show(RC_STRINGLIST *runlevels, bool verbose)
char buffer[PATH_MAX];
size_t l;
rc_stringlist_sort(&services);
TAILQ_FOREACH(service, services, entries) {
in = rc_stringlist_new();
inone = false;
@ -299,6 +300,7 @@ rc_update(int argc, char **argv)
runlevels = rc_runlevel_list();
}
rc_stringlist_sort(&runlevels);
show (runlevels, verbose);
} else {
if (!service)