ping address tun12 and restart clientvpn2 if necessary [SOLVED]

Discussion in 'Tomato Firmware' started by waeking, May 9, 2018.

  1. waeking

    waeking Addicted to LI Member

    I am using FreshTomato 2018.2

    I am looking to create a schedule to run every 30 min or so. I previously had something similar working but Google is not my friend today.

    ping -I tun12 -c 1 > /dev/null 2>&1 ; service clientvpn2 restart

    The code is what I am trying to get working could someone please help?
    Last edited: May 10, 2018
    huubuihieu likes this.
  2. waeking

    waeking Addicted to LI Member

    ping -I tun12 -c 5 > /dev/null 2>&1 || service vpnclient2 restart

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice