summaryrefslogtreecommitdiffstats
path: root/abs/core/LinHES-config/install_proxy.sh
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-05-13 23:12:59 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-05-13 23:12:59 (GMT)
commitc04f2dfff3a4abbe0e3b4a7247f0001f797b07ac (patch)
tree1ea09630829be880942c80ddb1c46e9a894598d2 /abs/core/LinHES-config/install_proxy.sh
parentf9dd982fcb0798475de7e99dcbe2cf8046c148ce (diff)
downloadlinhes_pkgbuild-c04f2dfff3a4abbe0e3b4a7247f0001f797b07ac.zip
linhes_pkgbuild-c04f2dfff3a4abbe0e3b4a7247f0001f797b07ac.tar.gz
linhes_pkgbuild-c04f2dfff3a4abbe0e3b4a7247f0001f797b07ac.tar.bz2
LinHES-config: install_proxy.sh additional debug output for network checks.
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"