cat /proc/net/dev | grep ":" | grep -v lo | grep -v sit | cut -d ":" -f 1 | tr -d " "
uselivemod /path/module.mo
http://www.slax.org/doc_modules.phpHow to create SLAX module
There are many ways how to create SLAX modules. All commands described here work directly in SLAX, but can also work in your own distribution. For that case, download linux live scripts and run install.
The following command will convert Slackware's TGZ package to SLAX module:
tgz2mo application.tgz application.mo
If you wish to modify your Slackware package before the module is created, use
installpkg -root /tmp/package application.tgz
It will install your TGZ package in different root (/tmp/package here). Modify files you need and finally convert the directory tree to module by using
dir2mo /tmp/package module.mo
All modules are created by mksquashfs command, which is included in linux live scripts. You can also download squashfs tools and compile it yourself. Your running kernel doesn't need to have squashfs support to use dir2mo or tgz2mo, only mksquashfs binary is needed.
^ top
How to modify existing SLAX module
You need kernel support for squashfs filesystem in order to modify existing SLAX module. SLAX contains this support. You can read more about squashfs here.
The following command will extract content of SLAX module to directory in /tmp
mo2dir module.mo /tmp/directory
You can modify everything in /tmp/directory now, and when done, pack the module back to .mo format by using
dir2mo /tmp/directory module.mo
If you just wish to see the content of a module (without extracting it to disk), mount it by using following command:
mount -t squashfs -o loop /path/module.mo /mnt/mountpoint
^ top
How to use SLAX modules
There are several ways how to use SLAX modules. The first one is permanent. Store your .mo module in /modules/ directory of SLAX CD (or USB). This way the module will be automatically used during boot procedure.
If you wish to use your module only sometimes, store it in /optional/ directory on SLAX CD (or USB). Module will be used automatically only in the case when you specify it's name as a load= boot parameter. For example
boot: slax load=wine,xmms
This means: use modules /optional/wine.mo and /optional/xmms.mo this time, if you find it. Requests for non-existing modules are silently ignored.
Another way how to use SLAX module is by executing uselivemod command. Syntax is following:
uselivemod /path/module.mo
The module will be inserted into live filesystem immediately, so the application will look like it would be installed. You will need to run the application by apropriate command. Unfortunately using modules on the fly by uselivemod can sometimes hang your machine, it's some bug which needs to be fixed.
If you are using SLAX Standard Edition (or any other edition with KDE) you can doubleclick the module.mo file in konqueror, this will do the trick too.
http://www.slax.org/doc_modules.php