Skip to content

Instantly share code, notes, and snippets.

@biiont
Created September 28, 2015 22:04
Show Gist options
  • Save biiont/3467a3eafca087d695ef to your computer and use it in GitHub Desktop.
Save biiont/3467a3eafca087d695ef to your computer and use it in GitHub Desktop.
Script to toggle vpnclient by pressing WPS button on Tomato/Shibby based router (put this to "Custom script" field at "Administration>Buttons/LED" page).
[ $(pidof vpnclient1; echo $?) -ne 0 ] && service vpnclient1 start || service vpnclient1 stop
#[ $1 -le 2 ] && telnetd #...
@meyerchak
Copy link

thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment