From 29916889e01a5485c9401a6f99426b07b901fb04 Mon Sep 17 00:00:00 2001 From: "Michael K. Johnson" Date: Tue, 6 Apr 1999 21:32:22 +0000 Subject: ifup-ipx ./_ confusion fixed --- sysconfig/network-scripts/ifup-ipx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'sysconfig/network-scripts') diff --git a/sysconfig/network-scripts/ifup-ipx b/sysconfig/network-scripts/ifup-ipx index b77ff3e8..9a9f6137 100755 --- a/sysconfig/network-scripts/ifup-ipx +++ b/sysconfig/network-scripts/ifup-ipx @@ -28,14 +28,15 @@ 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. :-) - case $(eval echo $(echo \$`echo IPXACTIVE_$frametype`)) in + framename=$(echo $frametype | sed 's/\./_/') + case $(eval echo $(echo \$`echo IPXACTIVE_$framename`)) in yes|true) - case $(eval echo $(echo \$`echo IPXPRIMARY_$frametype`)) in + case $(eval echo $(echo \$`echo IPXPRIMARY_$framename`)) in yes|true) primary=-p ;; *) primary= ;; esac /usr/bin/ipx_interface add $1 $primary $frametype \ - $(eval echo $(echo \$`echo IPXNETNUM_$frametype`)) + $(eval echo $(echo \$`echo IPXNETNUM_$framename`)) ;; esac done -- cgit v1.2.1