aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig
diff options
context:
space:
mode:
Diffstat (limited to 'sysconfig')
-rwxr-xr-xsysconfig/network-scripts/ifup-ipx7
1 files changed, 4 insertions, 3 deletions
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