-
Notifications
You must be signed in to change notification settings - Fork 31
Module API Documentation
Create directory %destdir.
Copy file from %srcfile to %destfile.
Move file or directory from %src to %dest.
Delete file %destfile.
Delete directory %destdir.
Create file %destfile.
Set permissions of file or directory %dest to %octalstr.
For example, to apply the permissions rwxrwxrwx, the argument %octalstr would be "0777".
Append file %srcfile to %destfile.
Append text %str to file %destfile. Command is binary-safe.
Extract %size bytes at offset %offset from file %srcfile. Output to file %destfile.
Write string %str to file %destfile at offset %offset. Command is binary-safe.
Pad file %destfile with single byte %byte to size %size. If %size is less than %destfile file size, then exit with error.
Decompress bzip2-compressed file %srcfile to %destfile
Decompress LZMA-compressed file %srcfile to %destfile
Unpack SquashFS filesystem %srcfile to %destdir. Utility version 1.0.
Unpack SquashFS filesystem (with LZMA compression) %srcfile to %destdir. Utility version 1.3.
Unpack SquashFS filesystem (with LZMA compression) %srcfile to %destdir. Utility version 3.0.
Unpack SquashFS filesystem %srcfile to %destdir. Utility version 4.1.
Unpack CramFS filesystem %srcfile to %destdir. Utility version 2.x.
Build SquashFS filesystem %destfile from directory %srcdir with block size %blocksize and endianness %endianness. Utility version 2.1.
%endianness may be one of the following values:
- "le" = little endian
- "be" = big endian
Build SquashFS filesystem (with LZMA compression) %destfile from directory %srcdir with block size %blocksize and endianness %endianness. Utility version 2.1.
%endianness may be one of the following values:
- "le" = little endian
- "be" = big endian
Build SquashFS filesystem (with LZMA compression) %destfile from directory %srcdir with block size %blocksize and endianness %endianness. Utility version 3.0.
%endianness may be one of the following values:
- "le" = little endian
- "be" = big endian
Build SquashFS filesystem (with LZMA compression) %destfile from directory %srcdir with block size %blocksize and endianness %endianness. Utility version 3.2-r2.
%endianness may be one of the following values:
- "le" = little endian
- "be" = big endian
Build SquashFS filesystem (with LZMA compression) %destfile from directory %srcdir with block size %blocksize. Utility version 4.1.
Build CramFS filesystem (edition %edition) %destfile from directory %srcdir.
Create Belkin Extended Firmware Header image %destfile from kernel %srckernel, filesystem %srcfs, and NVRAM settings file %srcnvram.
Extract Belkin Extended Firmware Header image %srcfile to kernel %destkernel, filesystem %destfs, and NVRAM settings file %destnvram.
Unpack PFS/0.9 archive %srcfile to %destdir.
Generate a NETGEAR .chk header for file %srcfile with board ID in file %bidfile and config file %configfile. File %srcfile is modified in-place.
Generate a Realtek header/footer for file %srcfile of type %type with start address %startaddr and burn address %burnaddr. File %srcfile is modified in-place.
%type may be one of the following values:
- "root" = rootfs
- "linux" = Linux kernel
Strip all symbols from MIPS object file %srcfile. This is most likely used for binary size minimization purposes.