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:
parent
227f831639
commit
11d8b70d74
@ -164,6 +164,7 @@ show(RC_STRINGLIST *runlevels, bool verbose)
|
|||||||
char buffer[PATH_MAX];
|
char buffer[PATH_MAX];
|
||||||
size_t l;
|
size_t l;
|
||||||
|
|
||||||
|
rc_stringlist_sort(&services);
|
||||||
TAILQ_FOREACH(service, services, entries) {
|
TAILQ_FOREACH(service, services, entries) {
|
||||||
in = rc_stringlist_new();
|
in = rc_stringlist_new();
|
||||||
inone = false;
|
inone = false;
|
||||||
@ -299,6 +300,7 @@ rc_update(int argc, char **argv)
|
|||||||
runlevels = rc_runlevel_list();
|
runlevels = rc_runlevel_list();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
rc_stringlist_sort(&runlevels);
|
||||||
show (runlevels, verbose);
|
show (runlevels, verbose);
|
||||||
} else {
|
} else {
|
||||||
if (!service)
|
if (!service)
|
||||||
|
Loading…
Reference in New Issue
Block a user