summaryrefslogtreecommitdiffstats
path: root/abs/core/LinHES-config/install_proxy.sh
diff options
context:
space:
mode:
authorCecil <knoppmyth@gmail.com>2012-05-14 01:38:13 (GMT)
committerCecil <knoppmyth@gmail.com>2012-05-14 01:38:13 (GMT)
commit6fa6efd0975ac9e669ee73fe009c25fe739ac017 (patch)
treeb4e1cdb3e3001a1209fe932b2e26db33b0ed9120 /abs/core/LinHES-config/install_proxy.sh
parente465b073524b59ea2b795d525cf39675857cf2ee (diff)
parentc04f2dfff3a4abbe0e3b4a7247f0001f797b07ac (diff)
downloadlinhes_pkgbuild-6fa6efd0975ac9e669ee73fe009c25fe739ac017.zip
linhes_pkgbuild-6fa6efd0975ac9e669ee73fe009c25fe739ac017.tar.gz
linhes_pkgbuild-6fa6efd0975ac9e669ee73fe009c25fe739ac017.tar.bz2
Merge branch 'testing' of git@linhes.org:linhes_pkgbuild into testing
Diffstat (limited to 'abs/core/LinHES-config/install_proxy.sh')
-rwxr-xr-xabs/core/LinHES-config/install_proxy.sh11
1 files changed, 8 insertions, 3 deletions
diff --git a/abs/core/LinHES-config/install_proxy.sh b/abs/core/LinHES-config/install_proxy.sh
index 4bb2444..2449874 100755
--- a/abs/core/LinHES-config/install_proxy.sh
+++ b/abs/core/LinHES-config/install_proxy.sh
@@ -119,6 +119,7 @@ case $1 in
echo " network check nameserver"
mydns=`cat /etc/resolv.conf|grep nameserver|head -1|awk '{ print $2}'`
ping -c 1 $mydns
+ echo " DNS server is $mydns"
if [ ! $? = 0 ]
then
exit 5
@@ -170,14 +171,18 @@ case $1 in
echo "Assuming hostname is OK"
echo "DNS unknown: $unkownhostip"
echo " HOSTDNS: $hoip "
+ echo " HOST: "
/sbin/ifconfig -a |grep "inet addr"
+ status=0
else
echo "IP in DNS but doesn't match mine, hostname is not safe to use"
- echo "DNS:$hoip"
- echo "HOST: "
+ echo " hout: $hout"
+ echo " DNS unknown: $unkownhostip"
+ echo " DNS IP:$hoip"
+ echo " HOST: "
/sbin/ifconfig -a |grep "inet addr"
status=7
- fi
+ fi
fi
else
echo "Couldn't find hostname in DNS, must be safe to use"