summaryrefslogtreecommitdiffstats
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
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.
-rw-r--r--abs/core/LinHES-config/PKGBUILD4
-rwxr-xr-xabs/core/LinHES-config/install_proxy.sh11
2 files changed, 10 insertions, 5 deletions
diff --git a/abs/core/LinHES-config/PKGBUILD b/abs/core/LinHES-config/PKGBUILD
index 22da3a3..d30fc63 100644
--- a/abs/core/LinHES-config/PKGBUILD
+++ b/abs/core/LinHES-config/PKGBUILD
@@ -1,6 +1,6 @@
pkgname=LinHES-config
pkgver=2.3
-pkgrel=75
+pkgrel=76
conflicts=(MythVantage-config MythVantage-config-dev LinHES-config-dev LinHes-config )
pkgdesc="Install and configure your system"
depends=('bc' 'libstatgrab' 'mysql-python' 'expect' 'curl' 'dnsutils' 'parted'
@@ -109,7 +109,7 @@ md5sums=('18af4fe481e1fc2ae02050026eb5cd27'
'16b98fcb3753ef6cfc35075c326d30e4'
'e36da536dd651ef182e7642337889e77'
'985891a43f7c4c983eb2a362162f1a0f'
- '2f0b85d37b15956b3d92419c886e040c'
+ '3f5693c76c7e483dd3c2184bc2546c82'
'5a31addfbdc1154b05997f972a32fa33'
'c20f73d4da5d7e15e1f3eb85c7dcb49a'
'68199e861c2933ccbb84735b9b440157'
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"