Update of /cvsroot/leaf/src/config/webconf/var/webconf/lib
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv3720
Modified Files:
networking.func
Log Message:
changed the get_interface function to cover ppp interfaces which
do not show an an address in the default route
Index: networking.func
===================================================================
RCS file: /cvsroot/leaf/src/config/webconf/var/webconf/lib/networking.func,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** networking.func 26 Jan 2009 08:49:10 -0000 1.1
--- networking.func 27 Apr 2009 13:56:21 -0000 1.2
***************
*** 50,54 ****
get_gateway(){
! $IP route | grep default | $SED -e 's/.*via *\([0-9.]*\).*$/\1/'
}
--- 50,61 ----
get_gateway(){
! default=`get_gateway_interface`
! has_via_address=`$IP route sh | grep default | grep via`
!
! if [ "X$has_via_address" != "X" ]; then
! echo `$IP route sh | grep default | $SED -e 's/.*via
\([0-9\.]*\).*/\1/'`
! else
! echo `$IP addr sh $default | grep inet | $SED -e 's/.*peer
\([0-9\.]*\).*/\1/'`
! fi
}
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
leaf-cvs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/leaf-cvs-commits