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
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to