iankelling.org
/
git
/
distro-setup
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
minor bug fix
[distro-setup]
/
vpn-client-connect
diff --git
a/vpn-client-connect
b/vpn-client-connect
index 8c6cebea75986c5d394850d1c1bce4bef81ad971..c3c9e8a9f7930cfa6604f7b7d1067bbda7c2408e 100755
(executable)
--- a/
vpn-client-connect
+++ b/
vpn-client-connect
@@
-8,7
+8,7
@@
x="$(readlink -f "$BASH_SOURCE")"; cd ${x%/*} # directory of this file
# see lan-dyn-dns-update. this is the corresponding script for on connect/disconnect from vpn
d=/p/ovpn-ssh
# see lan-dyn-dns-update. this is the corresponding script for on connect/disconnect from vpn
d=/p/ovpn-ssh
-ssh_cmd="ssh -F$d/.config -i$d/
id_rsa
root@wrt.b8.nz cedit ovpn-$X509_0_CN /etc/hosts"
+ssh_cmd="ssh -F$d/.config -i$d/
home
root@wrt.b8.nz cedit ovpn-$X509_0_CN /etc/hosts"
case $script_type in
client-connect) $ssh_cmd <<<"$ifconfig_pool_remote_ip $X509_0_CN"|| [[ $? == 1 ]]
;;
case $script_type in
client-connect) $ssh_cmd <<<"$ifconfig_pool_remote_ip $X509_0_CN"|| [[ $? == 1 ]]
;;