Bug 153581 - Wrong comparision of $SCRIPTNAME in ifup-802.1q prevents usage of ETHERDEVICE=eth-id-XX:XX:XX:XX:XX:XX
Summary: Wrong comparision of $SCRIPTNAME in ifup-802.1q prevents usage of ETHERDEVICE...
Status: VERIFIED FIXED
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: unspecified
Hardware: x86 SuSE Linux 10.0
: P5 - None : Normal
Target Milestone: ---
Assignee: Christian Zoz
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-26 13:11 UTC by Martin Schaller
Modified: 2007-06-05 09:37 UTC (History)
0 users

See Also:
Found By: Customer
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Schaller 2006-02-26 13:11:00 UTC
In /etc/sysconfig/network/scripts/ifup-802.1q there is a wrong comparision:
Lines 76-80:
# ETHERDEVICE may contain a device description which must first be
# converted to the current interface name of that device
if [ "$SCRIPTNAME" = ifup ] ; then
        ETHERDEVICE=`/sbin/getcfg-interface -- $ETHERDEVICE`
        if ! is_iface_available  $ETHERDEVICE ; then

Since $SCRIPTNAME is ifup-802.1q the getcfg-interface is never called and it is impossible to use ETHERDEVICE=eth-id-XX:XX:XX:XX:XX:XX in /etc/sysconfig/network/vlanX

Replacing it with:
if [ "$SCRIPTNAME" = ifup-802.1q ] ; then
makes it work.
Comment 1 Christian Zoz 2006-02-27 12:55:41 UTC
This is fixed in latest sysconfig YOUpdate.
Also fixed for current products.