aboutsummaryrefslogtreecommitdiff
path: root/shell/embedded_scripts (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Allow shell scripts to be embedded in the binaryRon Yorston2018-10-221-0/+62
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'".