[PATCH 0/2] Optional extras

Ron Yorston rmy at pobox.com
Sun Nov 18 15:01:29 UTC 2018


Here are another two patches for embedded script support.  They
assume that 'ash: allow a profile script to be embedded in the binary'
has been applied.

The first makes 'busybox --help' list custom scripts separately from
applets:

   Currently defined functions:
	   [, [[, acpid, add-shell, addgroup, adduser, adjtimex, arch, arp,
	   arping, ash, awk, base64, basename, beep, blkdiscard, blkid, blockdev,
       ...
       who, whoami, whois, xargs, xxd, xz, xzcat, yes, zcat, zcip

   Custom scripts:
	   .profile, hello

I think that's quite useful and it doesn't change the size of the binary
if no custom scripts are included.

The second allows any embedded script to be listed:

   $ busybox --show nologin
   cat /etc/nologin.txt 2>/dev/null || echo This account is not available
   sleep 5
   exit 1

That's possibly less useful and it's certainly more bloaty.

Ron


More information about the busybox mailing list