From 9a1806d7b052ec6b4f1bd151c288cbeb99380a35 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Mon, 2 Apr 2001 21:01:28 +0000 Subject: deuglify (#23198) --- sysconfig/network-scripts/ifup-ipx | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'sysconfig') diff --git a/sysconfig/network-scripts/ifup-ipx b/sysconfig/network-scripts/ifup-ipx index 926ac910..a626f27a 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