Customized Scripting

Follow

Comments

8 comments

  • Avatar
    Pete Gillis

    I have blue and am just interested in persisting some crontab settings.  Will the 

    /home/pi/.firewalla/config/user_crontab

    file also work for Firewalla blue?  Thanks.

    0
    Comment actions Permalink
  • Avatar
    Firewalla

    There is no need to do this for the blue, you can just use cron directly.   The reason gold is a bit special is, when in router mode, we want it to be stable, hence we restrict access to services to prevent 'you' from messing up the operating system and shut down the network.

    0
    Comment actions Permalink
  • Avatar
    Pete Gillis

    Hmm. Ok, I'll let you know if I loose my crontab next time the router reboots. I thought that is what happened before.

    0
    Comment actions Permalink
  • Avatar
    Michael Bierman

    Another use for custom scripting. Install Speedtest CLI on Firewalla. 

    Want to have speedtest cli on Firewalla Gold? This will tell you how fast your internet connection is right on Firewalla (no wifi or Ethernet involved)

    Firewalla will remove anything installed after upgrades so you can install a script to reinstall for you after firewalla upgrades and possibly reboots. See this gist.  

    Then you can run speedtest.

    speedtest --interface=eth0

    Or

    speedtest --interface=eth1

    if you have dual WAN and want to test WAN2

    0
    Comment actions Permalink
  • Avatar
    theroninhunter

    How soon after adding an entry into the ~/.firewalla/config/user_crontab does the main crontab pickup the change?

    0
    Comment actions Permalink
  • Avatar
    Michael Bierman

    after rebooting. @theoninhunter.

     

    0
    Comment actions Permalink
  • Avatar
    theroninhunter

    @Michael Bierman

     

    Yep that did it many thanks!

    1
    Comment actions Permalink
  • Avatar
    Michael Bierman

    Will scripts wait to be called until after a network connection has been made or does that need to be custom coded in the script?

    0
    Comment actions Permalink

Please sign in to leave a comment.