Bug 841 - IPX interfaces on eth0 not started by "ifup eth0"
IPX interfaces on eth0 not started by "ifup eth0"
Status: CLOSED DUPLICATE of bug 205
Product: Red Hat Linux
Classification: Retired
Component: initscripts (Show other bugs)
5.2
All Linux
medium Severity medium
: ---
: ---
Assigned To: David Lawrence
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 1999-01-15 09:24 EST by B. K. Oxley (binkley)
Modified: 2008-05-01 11:37 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 1999-01-15 11:31:08 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description B. K. Oxley (binkley) 1999-01-15 09:24:36 EST
After some checking, a shell hacker was a little whacky
with mixing eval/shell vars/program args.  He uses "802_3"
as the argument to ipx_interface, but it should be "802.3"
(for example, same true for other itfs).  I checked the
latest initscripts on rufus, and same bug.  Here's the
fixed file, ifup-ipx:

#!/bin/bash
# configures IPX on $1 if appropriate

PATH=/sbin:/usr/sbin:/bin:/usr/bin

if [ "$1" = "" ]; then
	echo "usage: $0 <net-device>"
	exit 1
fi

if [ ! -x /usr/bin/ipx_interface ] ; then
	# cannot configure IPX with non-existant utilities
	exit 0
fi

. /etc/sysconfig/network

case $IPX in yes|true) ;; *) exit 0 ;; esac

cd /etc/sysconfig/network-scripts
. network-functions

CONFIG=$1
[ -f "$CONFIG" ] || CONFIG=ifcfg-$CONFIG
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.  :-)
    case $(eval echo $(echo \$`echo IPXACTIVE_$frametype`))
in
	yes|true)
		case $(eval echo $(echo \$`echo
IPXPRIMARY_$frametype`)) in
		    yes|true) primary=-p ;;
		    *) primary= ;;
		esac
		# bozos... --bko
		case $frametype in
			802_2 ) real_frametype=802.2 ;;
			802_3 ) real_frametype=802.3 ;;
			ETHERII ) real_frametype=EtherII ;;
			* ) real_frametype=$frametype ;;
		esac
		/usr/bin/ipx_interface add $1 $primary
$real_frametype \
		  $(eval echo $(echo \$`echo
IPXNETNUM_$frametype`))
		;;
    esac
done

exit 0
Comment 1 Bill Nottingham 1999-01-15 11:31:59 EST
*** This bug has been marked as a duplicate of 205 ***

Note You need to log in before you can comment on or make changes to this bug.