aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/network-functions
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2001-06-20 22:59:03 +0000
committerBill Nottingham <notting@redhat.com>2001-06-20 22:59:03 +0000
commitf10c56a70b7e4a3d06449c408c492768f4c09e99 (patch)
tree9567166ab1f03b763b201b32eccf863c7e175222 /sysconfig/network-scripts/network-functions
parent214ac6e4e174cab252307a3c75c1a0922e205859 (diff)
downloadinitscripts-f10c56a70b7e4a3d06449c408c492768f4c09e99.tar
initscripts-f10c56a70b7e4a3d06449c408c492768f4c09e99.tar.gz
initscripts-f10c56a70b7e4a3d06449c408c492768f4c09e99.tar.bz2
initscripts-f10c56a70b7e4a3d06449c408c492768f4c09e99.tar.xz
initscripts-f10c56a70b7e4a3d06449c408c492768f4c09e99.zip
- fix testing for link so that modules will actually get loaded
- don't use $MACADDR for testing device's MAC address when it's a configuration parameter to change it; use $HWADDR instead. - fix broken ipcalc --prefix calls - re-add ifcfg-lo - fix check_default_route - fix up some of the stdout/stderr redirections
Diffstat (limited to 'sysconfig/network-scripts/network-functions')
-rw-r--r--sysconfig/network-scripts/network-functions3
1 files changed, 2 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/network-functions b/sysconfig/network-scripts/network-functions
index fdd4a211..3dbe4b96 100644
--- a/sysconfig/network-scripts/network-functions
+++ b/sysconfig/network-scripts/network-functions
@@ -98,7 +98,8 @@ check_link_down ()
check_default_route ()
{
- return ip route | grep -q default
+ ip route | grep -q default
+ return $?
}
find_gateway_dev ()