summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/LinHES-config/install_proxy.sh
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2008-12-10 21:45:08 (GMT)
committerJames Meyer <james.meyer@operamail.com>2008-12-10 21:45:08 (GMT)
commit79975a551625d4968919055a571c305f05162022 (patch)
treea42646890204a56afd8dc25658c6dd39eebfdc51 /abs/core-testing/LinHES-config/install_proxy.sh
parent5c7e37256f1a112f238d7d68ee5336ef78360ab7 (diff)
downloadlinhes_pkgbuild-79975a551625d4968919055a571c305f05162022.zip
linhes_pkgbuild-79975a551625d4968919055a571c305f05162022.tar.gz
linhes_pkgbuild-79975a551625d4968919055a571c305f05162022.tar.bz2
Use route -n instead of route.
Relates to FS#51
Diffstat (limited to 'abs/core-testing/LinHES-config/install_proxy.sh')
-rwxr-xr-xabs/core-testing/LinHES-config/install_proxy.sh11
1 files changed, 9 insertions, 2 deletions
diff --git a/abs/core-testing/LinHES-config/install_proxy.sh b/abs/core-testing/LinHES-config/install_proxy.sh
index f106b50..e6b0976 100755
--- a/abs/core-testing/LinHES-config/install_proxy.sh
+++ b/abs/core-testing/LinHES-config/install_proxy.sh
@@ -436,6 +436,8 @@ echo "-----------------------------------------------------------------------3--
check_self)
myipdefault=`ifconfig | grep -C1 $default_interface| grep -v $default_interface | cut -d: -f2 | awk '{ print $1}'`
+ echo "network check myself"
+ ifconfig
ping -c 1 $myipdefault
if [ ! $? = 0 ]
then
@@ -445,7 +447,10 @@ echo "-----------------------------------------------------------------------3--
;;
check_gw)
#check gateway
- mygwdefault=`/sbin/route |grep $default_interface|grep UG|awk '{ print $2}'`
+ echo "network check gateway"
+ /sbin/route -n
+ mygwdefault=`/sbin/route -n |grep $default_interface|grep UG|awk '{ print $2}'`
+ echo "Default gateway seems to be $mygwdefault"
if [ ! x$mygwdefault = x ]
then
ping -c 1 $mygwdefault
@@ -457,6 +462,7 @@ echo "-----------------------------------------------------------------------3--
;;
check_ns)
#check nameserver
+ echo " network check nameserver"
mydns=`cat /etc/resolv.conf|grep nameserver|head -1|awk '{ print $2}'`
ping -c 1 $mydns
if [ ! $? = 0 ]
@@ -465,6 +471,7 @@ echo "-----------------------------------------------------------------------3--
fi
;;
check_names)
+ echo "network check resolve names"
host google.com
if [ ! $? = 0 ]
then
@@ -474,7 +481,7 @@ echo "-----------------------------------------------------------------------3--
host_names)
#if host is found, then check to see if it's online
#if not online, assume it's ok to use this hostname
-
+ echo "network check my hostname $hostname"
hout=`host $hostname`
status=$?
#found host, now grab the ip