2013-04-04 10:18:08 +02:00
|
|
|
Installation:
|
|
|
|
- place the autowifi directory in /usr/share/lua
|
|
|
|
- create a symlink to ext/wfcf in /www/cgi-bin (make sure the file is executable)
|
|
|
|
- create a symlink to ext/autowifi.html in /www
|
|
|
|
- create a symlink to ext/autowifi.css in /www
|
|
|
|
- create a symlink to ext/autowifi.js in /www
|
|
|
|
- create a symlink to ext/autowifi_init in /etc/rc.d and name it S19autowifi_init
|
|
|
|
- enable init script by calling it with 'enable' argument?
|
2013-04-05 16:22:19 +02:00
|
|
|
- make sure radio0 in /etc/config/wireless is not disabled
|
|
|
|
- create a wlan network in /etc/config/network as follows <<EOF
|
|
|
|
config interface 'wlan'
|
|
|
|
option ifname 'radio0'
|
|
|
|
option proto 'dhcp'
|
|
|
|
EOF
|
|
|
|
- HOWEVER in ap mode it should be static with address '192.168.10.1' and netmask '255.255.255.0'
|
|
|
|
AND act as dhcp server, add to /etc/config/dhcp <<EOF
|
|
|
|
config dhcp 'wlan'
|
|
|
|
option interface 'wlan0'
|
|
|
|
option start '100'
|
|
|
|
option limit '150'
|
|
|
|
option leasetime '12h'
|
|
|
|
EOF
|
|
|
|
|