Hello,
i have buy for few days my ASUS AC88U Router and flash them with "asus merlin".
Network Speed is on 2.4 and 5.0 GHZ Band perfectly.
I have found a Amazon Dashbutton its connect to 2.4GHZ and block internet access.
I found few "scripts" to load a action when the Button is pressed but DNSMASQ give me an error and
the few wlan devices cant login into wlan.
May 5 07:17:16 custom_config: Appending content of /jffs/configs/dnsmasq.conf.add.
May 5 07:17:16 dnsmasq[3182]: illegal repeated keyword at line 42 of /etc/dnsmasq.conf
May 5 07:17:16 dnsmasq[3182]: FAILED to start up
On:
/jffs/configs/dnsmasq.conf.add file with this line :
dhcp-script=/jffs/a/post-lease.sh
On:
/jffs/a/post-lease.sh
#!/bin/sh
# just for testing
# touch /tmp/0_script_test
NowLeasedMac=$2
if [ “$NowLeasedMac” == “10:B3:32:42:55:62” ]; then
#Do what you want here when dashbutton pressed.
#e.g. I switch on-off my squeezebox player.
wget http://10.10.1.204/cm?user=demo&password=demo&cmnd=Power Off
echo “Caught !”
fi
Its a Sonoff behind with the cm? command to put it offline when is online.
Cant help me? Thanks
i have buy for few days my ASUS AC88U Router and flash them with "asus merlin".
Network Speed is on 2.4 and 5.0 GHZ Band perfectly.
I have found a Amazon Dashbutton its connect to 2.4GHZ and block internet access.
I found few "scripts" to load a action when the Button is pressed but DNSMASQ give me an error and
the few wlan devices cant login into wlan.
May 5 07:17:16 custom_config: Appending content of /jffs/configs/dnsmasq.conf.add.
May 5 07:17:16 dnsmasq[3182]: illegal repeated keyword at line 42 of /etc/dnsmasq.conf
May 5 07:17:16 dnsmasq[3182]: FAILED to start up
On:
/jffs/configs/dnsmasq.conf.add file with this line :
dhcp-script=/jffs/a/post-lease.sh
On:
/jffs/a/post-lease.sh
#!/bin/sh
# just for testing
# touch /tmp/0_script_test
NowLeasedMac=$2
if [ “$NowLeasedMac” == “10:B3:32:42:55:62” ]; then
#Do what you want here when dashbutton pressed.
#e.g. I switch on-off my squeezebox player.
wget http://10.10.1.204/cm?user=demo&password=demo&cmnd=Power Off
echo “Caught !”
fi
Its a Sonoff behind with the cm? command to put it offline when is online.
Cant help me? Thanks