commit 4e29fd495c22fdbb0c1ad261cbcea2e63bcdaac6 parent d732ba6ebbb47e3590438431c92b38103798f274 Author: Christoph Lohmann <20h@r-36.net> Date: Mon, 30 Jul 2012 16:41:52 +0200 Better description of the networks.tbl. Diffstat:
examples/wifi/README.md | | | 18 | +++++++++++++++++- |
1 file changed, 17 insertions(+), 1 deletion(-)
diff --git a/examples/wifi/README.md b/examples/wifi/README.md @@ -3,10 +3,26 @@ 1. run.sh starts wpa-supplicant and wpa-cli. 2. wpa-cli runs $interface-action.sh on an event. 3. $interface-action.sh greps in networks.tbl for the ssid of the - relevant network and calls the given script. + relevant network and calls the given script. (See the networks.tbl + section) 4. The script networks/$script is run and gets the interface and the changed state as argument. +## networks.tbl + +This file describes what script to call on which ESSID. It has the form of + + scriptname<TAB>SSID + +The file "scriptname" will be called in the directory "networks" on +connect and disconnect. + +On connect or disconnect the scripts are called this way: + + scriptname $interface $status + +$status can be of the valued "CONNECTED" or "DISCONNECTED". + ## WPA Supplicant The configuration file for wpa-supplicant is given in conn/common.sh;