aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2003-05-02 16:45:22 +0000
committerBill Nottingham <notting@redhat.com>2003-05-02 16:45:22 +0000
commitc3c42594656687b4cd38d81bca9d5841e65ba4d9 (patch)
treede587cc43404d860d276bf34aa09ba8c1d4c4c9a /sysconfig
parent73e2f68d74a5484449a7540a5db520ec2b28a35b (diff)
downloadinitscripts-c3c42594656687b4cd38d81bca9d5841e65ba4d9.tar
initscripts-c3c42594656687b4cd38d81bca9d5841e65ba4d9.tar.gz
initscripts-c3c42594656687b4cd38d81bca9d5841e65ba4d9.tar.bz2
initscripts-c3c42594656687b4cd38d81bca9d5841e65ba4d9.tar.xz
initscripts-c3c42594656687b4cd38d81bca9d5841e65ba4d9.zip
kill one extraneous grep (#90001, <samuel@bcgreen.com>)
Diffstat (limited to 'sysconfig')
-rwxr-xr-xsysconfig/network-scripts/ifup3
1 files changed, 1 insertions, 2 deletions
diff --git a/sysconfig/network-scripts/ifup b/sysconfig/network-scripts/ifup
index 944edaaf..bc412043 100755
--- a/sysconfig/network-scripts/ifup
+++ b/sysconfig/network-scripts/ifup
@@ -263,8 +263,7 @@ if [ -n "${DYNCONFIG}" ]; then
# DHCP likes to create duplicate routes. Fix that up.
NUMDEFROUTES=`ip -o route | \
- grep "^default" | \
- awk '{ nlines++ } END { print nlines }'`
+ awk '/^default/ { nlines++ } END { print nlines }'`
if [ -n "$NUMDEFROUTES" -a "$NUMDEFROUTES" -gt 1 ]; then
# remove the default route for the new device (old route wins)
ip route del default dev ${DEVICE}