Skip to content

Latest commit

 

History

History
14 lines (10 loc) · 383 Bytes

README.md

File metadata and controls

14 lines (10 loc) · 383 Bytes

vpnwatcher

Description

A simple shell script to watch a VPN connection. When the VPN connection is down, it will stop uTorrent (by sending SIGSTOP). When the VPN connection comes back up, it will resume uTorrent (by sending SIGCONT).

Details

  • Developed and tested on MacOS 10.12
  • assumes VPN up/down based on the presence of a ppp0 interface
  • cycles every 5 seconds