Skeleton to embed binary files in shell scripts.
Copy the skeleton to a new script:
shell $ cp skelembedshellscript.sh myinstaller.sh
Add payload binary file to the script:
shell $ base64 /path/to/file/originalfile.bin >> myinstaller.sh
Add execution permissions:
shell $ chmod a+x myinstaller.sh
Modify the EDIT SECTION script.