aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig
diff options
context:
space:
mode:
authorMiloslav Trmac <mitr@volny.cz>2006-03-19 14:55:41 +0000
committerMiloslav Trmac <mitr@volny.cz>2006-03-19 14:55:41 +0000
commit0a0bb655b2041c0978c768586c2f1057b80e816c (patch)
treeb6f7d62c21e5f554546bf93db78acfd37a2382e6 /sysconfig
parent11dd31df207ec365db599d8201e140ee663ef398 (diff)
downloadinitscripts-0a0bb655b2041c0978c768586c2f1057b80e816c.tar
initscripts-0a0bb655b2041c0978c768586c2f1057b80e816c.tar.gz
initscripts-0a0bb655b2041c0978c768586c2f1057b80e816c.tar.bz2
initscripts-0a0bb655b2041c0978c768586c2f1057b80e816c.tar.xz
initscripts-0a0bb655b2041c0978c768586c2f1057b80e816c.zip
Minor cleanups (#173574):
- Don't duplicate unset - Remove two (eval `grep ...`) instances
Diffstat (limited to 'sysconfig')
-rwxr-xr-xsysconfig/network-scripts/ifup-eth4
1 files changed, 2 insertions, 2 deletions
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