commit 85d29658e72231b10a7f00c7ae780fc0934a9df9
parent ec83cd6d7583c094255d3b50c1db85ded7e0e2a2
Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
Date: Tue, 2 Dec 2014 20:27:27 +0100
added vpn case
Diffstat:
2 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/bin/iddqd-ssh b/bin/iddqd-ssh
@@ -3,6 +3,9 @@
if [[ "$(ifconfig | grep 10.17.8)" ]]; then
echo "On geo lan, connecting directly..."
ssh -v iddqd.nfit.au.dk -t 'bin/tmux-dev.sh'
+elif [[ "$(ifconfig | grep 10.17.2)" ]]; then
+ echo "On geo VPN, connecting directly..."
+ ssh -v iddqd.nfit.au.dk -t 'bin/tmux-dev.sh'
else
echo "Outside geo lan, connecting through fresh-horse..."
ssh -v fh.cs.au.dk -t 'ssh iddqd.nfit.au.dk -t "bin/tmux-dev.sh"'
diff --git a/bin/iddqd-ssh-poster.sh b/bin/iddqd-ssh-poster.sh
@@ -3,6 +3,9 @@
if [[ "$(ifconfig | grep 10.17.8)" ]]; then
echo "On geo lan, connecting directly..."
ssh -X iddqd.nfit.au.dk -t 'tmuxinator poster'
+elif [[ "$(ifconfig | grep 10.17.2)" ]]; then
+ echo "On geo VPN, connecting directly..."
+ ssh -X iddqd.nfit.au.dk -t 'tmuxinator poster'
else
echo "Outside geo lan, connecting through fresh-horse..."
ssh -X fh.cs.au.dk -t 'ssh -X iddqd.nfit.au.dk -t "tmuxinator poster"'