aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2008-09-03 10:13:30 -0400
committerBill Nottingham <notting@redhat.com>2008-09-03 10:13:30 -0400
commitb4a2679dfeee219db109dd1259e3519263ed4773 (patch)
tree6af6c597565aecc04b88ddc5889d4e73dcbca8f7
parentd76fe88aa176814394c3b1fdb53fa6d57749d4a0 (diff)
downloadinitscripts-b4a2679dfeee219db109dd1259e3519263ed4773.tar
initscripts-b4a2679dfeee219db109dd1259e3519263ed4773.tar.gz
initscripts-b4a2679dfeee219db109dd1259e3519263ed4773.tar.bz2
initscripts-b4a2679dfeee219db109dd1259e3519263ed4773.tar.xz
initscripts-b4a2679dfeee219db109dd1259e3519263ed4773.zip
Use 0.0.0.0/0, not 0/0. (#460580)
Updated iproute doesn't like the old syntax.
-rwxr-xr-xrc.d/rc.sysinit2
-rwxr-xr-xsysconfig/network-scripts/ifup-ppp2
-rw-r--r--sysconfig/network-scripts/network-functions2
3 files changed, 3 insertions, 3 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index 4a1e3eca..424ee442 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -480,7 +480,7 @@ if [ "$READONLY" = "yes" -o "$TEMPORARY_STATE" = "yes" ]; then
# must be done even if we have local storage.
ipaddr=
if [ "$HOSTNAME" = "localhost" -o "$HOSTNAME" = "localhost.localdomain" ]; then
- ipaddr=$(ip addr show to 0/0 scope global | awk '/[[:space:]]inet / { print gensub("/.*","","g",$2) }')
+ ipaddr=$(ip addr show to 0.0.0.0/0 scope global | awk '/[[:space:]]inet / { print gensub("/.*","","g",$2) }')
if [ -n "$ipaddr" ]; then
eval $(ipcalc -h $ipaddr 2>/dev/null)
hostname ${HOSTNAME}
diff --git a/sysconfig/network-scripts/ifup-ppp b/sysconfig/network-scripts/ifup-ppp
index 6335ca91..cc462d57 100755
--- a/sysconfig/network-scripts/ifup-ppp
+++ b/sysconfig/network-scripts/ifup-ppp
@@ -105,7 +105,7 @@ fi
if [ "${DEFROUTE}" != no ] ; then
# pppd will no longer delete an existing default route
# so we have to help it out a little here.
- DEFRT=$(ip route list match 0/0)
+ DEFRT=$(ip route list match 0.0.0.0/0)
[ -n "${DEFRT}" ] && echo "$DEFRT" > /etc/default-routes
echo "$DEFRT" | while read spec; do
ip route del $spec;
diff --git a/sysconfig/network-scripts/network-functions b/sysconfig/network-scripts/network-functions
index a5aa378e..5ff58089 100644
--- a/sysconfig/network-scripts/network-functions
+++ b/sysconfig/network-scripts/network-functions
@@ -309,7 +309,7 @@ check_link_down ()
check_default_route ()
{
- LC_ALL=C ip route list match 0/0 | grep -q default
+ LC_ALL=C ip route list match 0.0.0.0/0 | grep -q default
}
find_gateway_dev ()