Mercurial > index.cgi > dotfiles
comparison .ssh/athome @ 270:6dc992e4fc4a
Fix that one too
author | Steve Huston <huston@srhuston.net> |
---|---|
date | Thu, 25 Apr 2024 13:21:10 -0400 |
parents | 33541d73d6d7 |
children | e7e331a51f2c |
comparison
equal
deleted
inserted
replaced
269:ae940a45bfff | 270:6dc992e4fc4a |
---|---|
20 # Now how to get the home IP.. let's loop through ways it's possible | 20 # Now how to get the home IP.. let's loop through ways it's possible |
21 HOMEDNS="b6800200.eero.online" | 21 HOMEDNS="b6800200.eero.online" |
22 | 22 |
23 if which -s getent awk > /dev/null 2>&1 ; then | 23 if which -s getent awk > /dev/null 2>&1 ; then |
24 HOMEIP=`getent ahostsv4 $HOMEDNS | awk '{print $1; exit}'` | 24 HOMEIP=`getent ahostsv4 $HOMEDNS | awk '{print $1; exit}'` |
25 elif which -s dig ; then | 25 elif which -s dig > /dev/null 2>&1 ; then |
26 HOMEIP=`dig +short $HOMEDNS` | 26 HOMEIP=`dig +short $HOMEDNS` |
27 else | 27 else |
28 exit $off | 28 exit $off |
29 fi | 29 fi |
30 | 30 |