From b4a2679dfeee219db109dd1259e3519263ed4773 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Wed, 3 Sep 2008 10:13:30 -0400 Subject: Use 0.0.0.0/0, not 0/0. (#460580) Updated iproute doesn't like the old syntax. --- sysconfig/network-scripts/ifup-ppp | 2 +- sysconfig/network-scripts/network-functions | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'sysconfig') 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 () -- cgit v1.2.1