From 0a0bb655b2041c0978c768586c2f1057b80e816c Mon Sep 17 00:00:00 2001 From: Miloslav Trmac Date: Sun, 19 Mar 2006 14:55:41 +0000 Subject: Minor cleanups (#173574): - Don't duplicate unset - Remove two (eval `grep ...`) instances --- sysconfig/network-scripts/ifup-eth | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sysconfig/network-scripts') diff --git a/sysconfig/network-scripts/ifup-eth b/sysconfig/network-scripts/ifup-eth index d66ba5af..5a4a985e 100755 --- a/sysconfig/network-scripts/ifup-eth +++ b/sysconfig/network-scripts/ifup-eth @@ -265,9 +265,9 @@ if [ "${TYPE}" = "Bonding" ] || ethtool -i $DEVICE 2>/dev/null| grep -q "driver for device in `LANG=C grep -l "^[[:space:]]*MASTER=${DEVICE}" /etc/sysconfig/network-scripts/ifcfg-*` ; do if [ "$BOOTPROTO" = "dhcp" ]; then DEV=$DEVICE - eval $(LANG=C fgrep "DEVICE=" $device) + (. $device ifenslave -d $DEV $DEVICE - DEVICE=$DEV + ) fi /sbin/ifup ${device##*/} done -- cgit v1.2.1