TLDR: trying to run /jffs/a/post-lease.sh via /jffs/configs/dnsmasq.conf.add as explained in the link below, but i get the error, "dnsmasq[287]: failed to execute /jffs/a/post-lease.sh: No such file or directory" in the asus system log. However, I can see the file is present and executable (chmod +X) when i telenet or ssh into router.
How do I get it so merlin recognizes post-lease.sh?
-------
So I am trying to use an amazon dash button to run an ifttt through a maker webhook, similar to what is explained here:
LINK
https://medium.com/@_dmon_/i-have-a...y-to-catch-this-button-in-action-e25582b5d695
My /jffs/configs/dnsmasq.conf.add file: dhcp-script=/jffs/a/post-lease.sh
My /jffs/a/post-lease.sh file:
#!/bin/sh
# just for testing
# touch /tmp/0_script_test
NowLeasedMac=$2
if [ “$NowLeasedMac” == “11:22:33:44:55:66” ]; then
#Do what you want here when dashbutton pressed.
#e.g. I switch on-off my squeezebox player.
wget https://maker.ifttt.com/trigger/[xxxxx]/with/key/[xxxxxx]
echo “Caught !”
fi
#
How do I get it so merlin recognizes post-lease.sh?
-------
So I am trying to use an amazon dash button to run an ifttt through a maker webhook, similar to what is explained here:
LINK
https://medium.com/@_dmon_/i-have-a...y-to-catch-this-button-in-action-e25582b5d695
My /jffs/configs/dnsmasq.conf.add file: dhcp-script=/jffs/a/post-lease.sh
My /jffs/a/post-lease.sh file:
#!/bin/sh
# just for testing
# touch /tmp/0_script_test
NowLeasedMac=$2
if [ “$NowLeasedMac” == “11:22:33:44:55:66” ]; then
#Do what you want here when dashbutton pressed.
#e.g. I switch on-off my squeezebox player.
wget https://maker.ifttt.com/trigger/[xxxxx]/with/key/[xxxxxx]
echo “Caught !”
fi
#