summaryrefslogtreecommitdiffstats
path: root/abs
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
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')
-rwxr-xr-xabs/core-testing/LinHES-config/PKGBUILD2
-rwxr-xr-xabs/core-testing/LinHES-config/install_proxy.sh11
-rw-r--r--abs/core-testing/LinHES-config/myth_user_call2
-rw-r--r--abs/mv-core/MythVantage-config/myth_user_call2
4 files changed, 12 insertions, 5 deletions
diff --git a/abs/core-testing/LinHES-config/PKGBUILD b/abs/core-testing/LinHES-config/PKGBUILD
index d9f7f20..2a8ad77 100755
--- a/abs/core-testing/LinHES-config/PKGBUILD
+++ b/abs/core-testing/LinHES-config/PKGBUILD
@@ -1,6 +1,6 @@
pkgname=LinHES-config
pkgver=1.0
-pkgrel=93
+pkgrel=96
conflicts=(MythVantage-config MythVantage-config-dev LinHES-config-dev )
pkgdesc="Install and configure your system"
depends=(bc libstatgrab mysql-python expect curl dnsutils parted sg3_utils nmbscan )
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
diff --git a/abs/core-testing/LinHES-config/myth_user_call b/abs/core-testing/LinHES-config/myth_user_call
index 0f899df..0479895 100644
--- a/abs/core-testing/LinHES-config/myth_user_call
+++ b/abs/core-testing/LinHES-config/myth_user_call
@@ -1,4 +1,4 @@
-GGGGGGGGG#!/bin/bash
+#!/bin/bash
#Wrapper script to manage USERNAME accounts + web security
# myth_USERNAME_all -c add -u USERNAME
# myth_USERNAME_all -c delete -u USERNAME
diff --git a/abs/mv-core/MythVantage-config/myth_user_call b/abs/mv-core/MythVantage-config/myth_user_call
index 0f899df..0479895 100644
--- a/abs/mv-core/MythVantage-config/myth_user_call
+++ b/abs/mv-core/MythVantage-config/myth_user_call
@@ -1,4 +1,4 @@
-GGGGGGGGG#!/bin/bash
+#!/bin/bash
#Wrapper script to manage USERNAME accounts + web security
# myth_USERNAME_all -c add -u USERNAME
# myth_USERNAME_all -c delete -u USERNAME