Hmods are either a folder ending in .hmod or a gzip compressed tar archive with the .hmod file extension.
Structure[edit | edit source]
All files in the hmod with the exception of any readme, install, or uninstall script will be copied to
$rootfs unless the install script for the hmod returns a non-zero exit code.
Install Script[edit | edit source]
If this script returns a non-zero exit code, the hmod files will not be copied to
Uninstall Script[edit | edit source]
This script will be run during hmod uninstall, and a list of files copied to
$rootfs will automatically be appended to the uninstall script for removal.
If you do not wish to have an uninstall script generated, you can make a file with the contents of
Variables[edit | edit source]
transferpath[edit | edit source]
During hmod install, a variable of
$transferpath will be available and will contain the path containing the data for the hmod currently being installed.