diff options
author | Ron Yorston <rmy@pobox.com> | 2018-10-22 09:12:07 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2018-10-22 09:20:19 +0100 |
commit | 3994d5a52b8fa70637bffe4173f165267e6169fb (patch) | |
tree | 33268801c1adaa10797e6bee98ef737293fe6711 /make_single_applets.sh | |
parent | eee3722fd32c8c0929cfbacdbe0b6524e1fd645c (diff) | |
download | busybox-w32-3994d5a52b8fa70637bffe4173f165267e6169fb.tar.gz busybox-w32-3994d5a52b8fa70637bffe4173f165267e6169fb.tar.bz2 busybox-w32-3994d5a52b8fa70637bffe4173f165267e6169fb.zip |
Allow shell scripts to be embedded in the binary
To assist in the deployment of shell scripts it may be convenient
to embed them in the BusyBox binary.
This patch adds two configuration options to the shell:
- 'Embed scripts in the binary' takes any files in the directory
'embed', concatenates them with null separators, compresses them
and embeds them in the binary.
- 'Allow the contents of embedded scripts to be listed' makes the
shell argument '-L name' list the contents of the named script.
Both options are off by default.
When scripts are embedded in the binary:
- The shell argument '-L' lists the names of the scripts.
- Scripts can be run as 'sh name arg...'.
- An alias is added for each script, equivalent to "alias name='sh name'".
Diffstat (limited to 'make_single_applets.sh')
0 files changed, 0 insertions, 0 deletions