aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifup
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/ifup
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/ifup')
-rwxr-xr-xsysconfig/network-scripts/ifup7
1 files changed, 6 insertions, 1 deletions
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