busybox: show embedded scripts in applet list
function old new delta busybox_main 624 642 +18 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
c9e161277e
commit
0575c9932d
@ -839,9 +839,14 @@ int busybox_main(int argc UNUSED_PARAM, char **argv)
|
|||||||
"Currently defined functions:\n"
|
"Currently defined functions:\n"
|
||||||
);
|
);
|
||||||
col = 0;
|
col = 0;
|
||||||
a = applet_names;
|
|
||||||
/* prevent last comma to be in the very last pos */
|
/* prevent last comma to be in the very last pos */
|
||||||
output_width--;
|
output_width--;
|
||||||
|
a = applet_names;
|
||||||
|
{
|
||||||
|
# if NUM_SCRIPTS > 0
|
||||||
|
int i;
|
||||||
|
for (i = 0; i < 2; i++, a = script_names)
|
||||||
|
# endif
|
||||||
while (*a) {
|
while (*a) {
|
||||||
int len2 = strlen(a) + 2;
|
int len2 = strlen(a) + 2;
|
||||||
if (col >= (int)output_width - len2) {
|
if (col >= (int)output_width - len2) {
|
||||||
@ -858,6 +863,7 @@ int busybox_main(int argc UNUSED_PARAM, char **argv)
|
|||||||
col += len2;
|
col += len2;
|
||||||
a += len2 - 1;
|
a += len2 - 1;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
full_write2_str("\n");
|
full_write2_str("\n");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user