From da7d205446459dfa1ba7bb46206955383dc6a420 Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Sat, 5 Jan 2019 10:11:43 +0000 Subject: busybox: identify scripts in output of 'busybox --list-full' --- libbb/appletlib.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libbb/appletlib.c b/libbb/appletlib.c index 3cbb5699c..11136de11 100644 --- a/libbb/appletlib.c +++ b/libbb/appletlib.c @@ -965,6 +965,10 @@ int busybox_main(int argc UNUSED_PARAM, char **argv) str = "NOFORK "; else if (APPLET_IS_NOEXEC(i)) str = "noexec "; +# if NUM_SCRIPTS > 0 + else if (applet_main[i] == scripted_main) + str = "script "; +# endif else str = " "; full_write2_str(str); -- cgit v1.2.3-55-g6feb