aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2001-01-29 21:32:26 +0000
committerBill Nottingham <notting@redhat.com>2001-01-29 21:32:26 +0000
commit4429290e12d9b197aeb50e77e5a27296ae914cae (patch)
tree206cfa82d1b9cb6884916020a95084dbea80dccd
parent7207e27726c83d78962e46c978472e9d9de07417 (diff)
downloadinitscripts-4429290e12d9b197aeb50e77e5a27296ae914cae.tar
initscripts-4429290e12d9b197aeb50e77e5a27296ae914cae.tar.gz
initscripts-4429290e12d9b197aeb50e77e5a27296ae914cae.tar.bz2
initscripts-4429290e12d9b197aeb50e77e5a27296ae914cae.tar.xz
initscripts-4429290e12d9b197aeb50e77e5a27296ae914cae.zip
deuglify (#23198)
-rwxr-xr-xsysconfig/network-scripts/ifup-ipx13
1 files changed, 6 insertions, 7 deletions
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