diff options
author | Bill Nottingham <notting@redhat.com> | 2001-08-20 03:43:51 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2001-08-20 03:43:51 +0000 |
commit | 2283cf45bd0172a632dcf82ca446126c0e792b4b (patch) | |
tree | 097a1387d274de1869dce2ea1d5a841985c99a72 /sysconfig/network-scripts/ifup | |
parent | e2628d6d5ab241c3d7bbff2d93d58992e7c57b06 (diff) | |
download | initscripts-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-x | sysconfig/network-scripts/ifup | 7 |
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 |