From 0cb7943aaa4f921e8b0442d35a0c409e862623f2 Mon Sep 17 00:00:00 2001 From: Anton Bobov Date: Fri, 24 Mar 2017 22:34:25 +0500 Subject: Add scripts. * auto-display - toggle all displays in auto mode * bang - play audio file (useful to notify on other process ending) * bat - display battery status * through-vpn - add host to route through vpn --- through-vpn.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 through-vpn.sh (limited to 'through-vpn.sh') diff --git a/through-vpn.sh b/through-vpn.sh new file mode 100755 index 0000000..7e9e1ee --- /dev/null +++ b/through-vpn.sh @@ -0,0 +1,11 @@ +#!/bin/sh +# +# Add host to through-vpn address list. +# + +if [ $# -eq 0 ] ; then + echo 'First argument must be host name.' + exit 1 +fi + +ssh riga "/ip firewall address-list add address=$1 list=through-vpn" -- cgit v1.2.3