N2200 How To Create Module

Create User Module
Creating a user module for the Thecus N2200 is somewhat similar to the N2100.
 * The module directory structure is different (this could vary depending on HD setup?):
 * N2100: /raid/module/
 * N2200: /raid/data/module/
 * The binaries are not compatible, as N2200 needs binaries compiled for ARM.

Module file format
The MOD file is an archive in format TAR then GZIP, otherwise known as .tar.gz

The APP file is the MOD file encrypted with a key that is stored in the NAS. This can be decrypted or encrypted on the NAS.

Module contents
Note, ensure all shell scripts are in unix file format, i.e. have line endings of LF instead of CRLF.

This site has some description on the files needed: Thecus_N1200_Module_Development

Pack module
Thecus Linux des -E -k AppModule "HELLOWORLD.mod" "HELLOWORLD.app"

Any Linux tar zcvf HELLOWORLD.mod ./HELLOWORLD

Windows, assuming 7-Zip is installed:

"C:\Program Files\7-Zip\7z.exe" a -tTar HELLOWORLD.tar HELLOWORLD "C:\Program Files\7-Zip\7z.exe" a -tGzip HELLOWORLD.mod HELLOWORLD.tar

Unpack module
Thecus Linux des -D -k AppModule "HELLOWORLD.app" "HELLOWORLD.mod"

Any Linux tar zxvf HELLOWORLD.mod

Windows, assuming 7-Zip is installed: "C:\Program Files\7-Zip\7z.exe" x -tGzip HELLOWORLD.mod HELLOWORLD.tar "C:\Program Files\7-Zip\7z.exe" x -tTar HELLOWORLD.tar HELLOWORLD

Sample
N2200 Module HELLOWORLD