Community discussions

 
Frostbyte
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 72
Joined: Mon Dec 25, 2017 1:42 am

RouterSCRIPTS - A collection of scripts for RouterBOARD devices

Wed Jan 02, 2019 4:53 pm

Greetings and happy new year!

My old scripts and schedulers used to have a lot of hard coded values, were limited to only two gateways, did not utilize functions and were fairly inconsistent.
After nearly two years of putting it off and the acquisition of my new toys, I finally found the time to sit and rewrite the entirety of the scripts that I use on a daily basis.

You can check them out here:
https://github.com/FrostbyteGR/RouterSCRIPTS

Tip: If you plan on using them yourself: make sure you peruse the README section, as it will save you a lot of time and pain, in the long run.
Last edited by Frostbyte on Wed Jan 02, 2019 9:34 pm, edited 1 time in total.
 
Frostbyte
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 72
Joined: Mon Dec 25, 2017 1:42 am

Re: RouterSCRIPTS - A collection of scripts for RouterBOARD devices

Wed Jan 02, 2019 4:54 pm

Frequently Asked Questions:
< To be filled when there are questions >
Last edited by Frostbyte on Wed Oct 02, 2019 8:32 pm, edited 4 times in total.
 
paulavalencia
just joined
Posts: 1
Joined: Tue Jun 25, 2019 5:49 pm

Re: RouterSCRIPTS - A collection of scripts for RouterBOARD devices

Tue Jun 25, 2019 6:38 pm

Hey, frostbyte

Don't know if I should be posting here since there are no other replies, but it says to do so in the Github, so here I am.

I keep getting errors saying my variables are empty or contain invalid values in every module. I even tested it with the same values you put in the example, only changing the IP address on WANGateways, but can't make it work. I mainly wanna test your failover script in place of another I have, but also liked the DNS one and would like to set it up as well.

Please, if you can help me on this issue. I'm running the 6.44.3 version, if that's relevant. Thank you in advance.
 
tedd77
newbie
Posts: 39
Joined: Sun Dec 18, 2011 5:05 pm

Re: RouterSCRIPTS - A collection of scripts for RouterBOARD devices

Wed Oct 02, 2019 3:01 am

I am facing the same challenge of @paulavalencia
Could anyone assist ?
 
Frostbyte
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 72
Joined: Mon Dec 25, 2017 1:42 am

Re: RouterSCRIPTS - A collection of scripts for RouterBOARD devices

Wed Oct 02, 2019 6:00 pm

Hello,

Apologies for the late reply, due to my fairly busy daily schedule this one managed to slip under my radar.

This behavior occurs when the configuration file is saved with the UNIX (\n) instead of Windows (\r\n) EOL scheme.
I have rolled out an update (to the parser function) where it properly detects and adjusts the EOL sequence, which fixes the issue.

Thank you for reporting this to me and for your patience.

Who is online

Users browsing this forum: No registered users and 13 guests