Configuration files

The usblauncher configuration files contain instructions for launching drivers for particular devices as well as descriptors to expose to USB hosts when running the stack in device mode.

Configuration files for usblauncher are interpreted as Lua scripts (see the Lua project homepage for information on the Lua language). By default, usblauncher reads the file at /etc/usblauncher/rules.lua, but you can specify a nondefault configuration file by using the -c command-line option. You can name only one configuration file, but this file can include other Lua files by using the dofile command. For ease of maintenance, the platform image stores the USB device mode descriptors in separate Lua files, which are included in the main file so that usblauncher can override the default descriptors after launching the USB device stack.