Hi all
First of all i do like to say thanks for this firmware and thread, i used it several times and it helping me.
Can anybody help me with my situation? Hope i don't mismatched thread for such question...
I have
ASUS RT-N66 with
Merlin LTS Fork 374.43_43E6j9527 firmware installed
I want set up script that will be email me in this case occurs:
wan-connected
I think its a good idea to know when WAN is down, to not constantly refreshing random pages sitting in front of the screen)
I read wiki (
https://github.com/RMerl/asuswrt-merlin.ng/wiki) and take
wan-start script example to test if i can set up it to work. Fill it with my credentials, connect through SSH to my router, put script in jffs/scripts/, make it executable and run it manually – all good, i got the email.
But, then i reboot my router – got nothing...
My questions is:
How to understand, that LTS firmware supports these scripts from wiki?
(
https://github.com/RMerl/asuswrt-merlin.ng/wiki/User-scripts)
How can i set up script for my purposes? Do i need to update and go away from LTS fork to get it work?
(i read what
wan-start script is deprecated now and we should use
wan-event instead, but i really don't get how to do this, do i need write these wan-event conditions in the name of the script file, or in beginning of script code... Which WAN port i'm using primary (0) or secondary (1)... Can't find example of code to adapt it for me)