From 4429290e12d9b197aeb50e77e5a27296ae914cae Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Mon, 29 Jan 2001 21:32:26 +0000 Subject: deuglify (#23198) --- sysconfig/network-scripts/ifup-ipx | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'sysconfig/network-scripts/ifup-ipx') diff --git a/sysconfig/network-scripts/ifup-ipx b/sysconfig/network-scripts/ifup-ipx index 53871cca..4d03d833 100755 --- a/sysconfig/network-scripts/ifup-ipx +++ b/sysconfig/network-scripts/ifup-ipx @@ -25,18 +25,17 @@ CONFIG=$1 source_config for frametype in 802.2 802.3 ETHERII SNAP ; do - # Yes, this kind of evaluation is really necessary to do this. - # Welcome to shell programming... No, we were not smoking some - # particularly good floppies while we wrote this. :-) framename=$(echo $frametype | sed 's/\./_/') - case $(eval echo $(echo \$`echo IPXACTIVE_$framename`)) in + eval ACT=\$IPXACTIVE_$framename + case $ACT in yes|true) - case $(eval echo $(echo \$`echo IPXPRIMARY_$framename`)) in + eval PRIM=\$IPXPRIMARY_$framename + case $PRIM in yes|true) primary=-p ;; *) primary= ;; esac - /sbin/ipx_interface add $primary $1 $frametype \ - $(eval echo $(echo \$`echo IPXNETNUM_$framename`)) + eval NUM=\$IPXNETNUM_$framename + /sbin/ipx_interface add $primary $1 $frametype $NUM ;; esac done -- cgit v1.2.1