Technical data
4. Packages
HWSUPP_BUTTON_x Defines the action which should be executed on button press.
The following actions are supported:
• reset - restart the fli4l router
• online - causes an internet dialin or terminates an internet connection.
• user - an user script will be executed
Th e list of possible actions can be extended by other packages. If the WLAN package
is loaded, eg. the action
• wlan - activate or deactivate WLAN
is possible.
HWSUPP_BUTTON_x_DEVICE Specifies the button device an.
Here has to be entered a GPIO number in the format gpio::x. By preceding the char /
the GPIO functionality may be inverted.
A list of predefined GPIO’s for a specific HSUPP_TYPE can be found in the appendix B.7.2.
Examples:
HWSUPP_BUTTON_1_DEVICE='gpio::252'
HWSUPP_BUTTON_2_DEVICE='/gpio::237'
HWSUPP_BUTTON_x_PARAM Defines parameters for the action selected in HWSUPP_BUTTON_x.
Depending on the action HWSUPP_BUTTON_x_PARAM has different meanings.
If HWSUPP_BUTTON_x=’user’ is set, HWSUPP_BUTTON_x_PARAM defines a script to be executed
on button press.
Example:
HWSUPP_BUTTON_1='user'
HWSUPP_BUTTON_2_WLAN='/usr/local/bin/myscript'
If HWSUPP_BUTTON_x is set to ’wlan’, the HWSUPP_BUTTON_x_PARAM defines one ore more
WLAN devices, which shall be activated or deactivated on button press. Multiple WLAN
devices have to be separated by spaces.
Example:
HWSUPP_BUTTON_2='wlan'
HWSUPP_BUTTON_2_WLAN='wlan0 wlan1'
131










