aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2001-08-20 03:43:51 +0000
committerBill Nottingham <notting@redhat.com>2001-08-20 03:43:51 +0000
commit2283cf45bd0172a632dcf82ca446126c0e792b4b (patch)
tree097a1387d274de1869dce2ea1d5a841985c99a72 /sysconfig/network-scripts
parente2628d6d5ab241c3d7bbff2d93d58992e7c57b06 (diff)
downloadinitscripts-2283cf45bd0172a632dcf82ca446126c0e792b4b.tar
initscripts-2283cf45bd0172a632dcf82ca446126c0e792b4b.tar.gz
initscripts-2283cf45bd0172a632dcf82ca446126c0e792b4b.tar.bz2
initscripts-2283cf45bd0172a632dcf82ca446126c0e792b4b.tar.xz
initscripts-2283cf45bd0172a632dcf82ca446126c0e792b4b.zip
- fix call of check_device_down in ifdown
- make loopback addresses have scope 'host', not scope 'global'. This apparently fixes pump.
Diffstat (limited to 'sysconfig/network-scripts')
-rwxr-xr-xsysconfig/network-scripts/ifdown2
-rwxr-xr-xsysconfig/network-scripts/ifup7
2 files changed, 7 insertions, 2 deletions
diff --git a/sysconfig/network-scripts/ifdown b/sysconfig/network-scripts/ifdown
index c8c8b590..1b439549 100755
--- a/sysconfig/network-scripts/ifdown
+++ b/sysconfig/network-scripts/ifdown
@@ -90,7 +90,7 @@ ip link set ${DEVICE} down
# wait up to 5 seconds for device to actually come down...
waited=0
-while ! check_device_down && [ "$waited" -lt 50 ] ; do
+while ! check_device_down ${DEVICE} && [ "$waited" -lt 50 ] ; do
usleep 10000
waited=$(($waited+1))
done
diff --git a/sysconfig/network-scripts/ifup b/sysconfig/network-scripts/ifup
index 81f16d33..f347bcc8 100755
--- a/sysconfig/network-scripts/ifup
+++ b/sysconfig/network-scripts/ifup
@@ -207,10 +207,15 @@ else
exit 1
fi
+ if [ "${DEVICE}" = "lo" ]; then
+ SCOPE="scope host"
+ else
+ SCOPE=
+ fi
if ! LC_ALL=C ip addr ls ${DEVICE} | grep -q "${IPADDR}/${PREFIX}" ; then
if ! ip addr add ${IPADDR}/${PREFIX} \
- brd ${BROADCAST:-+} dev ${DEVICE} ; then
+ brd ${BROADCAST:-+} dev ${DEVICE} ${SCOPE} ; then
echo $"Error adding address ${IPADDR} for ${DEVICE}."
fi
fi