Bug 153581

Summary: Wrong comparision of $SCRIPTNAME in ifup-802.1q prevents usage of ETHERDEVICE=eth-id-XX:XX:XX:XX:XX:XX
Product: [openSUSE] SUSE LINUX 10.0 Reporter: Martin Schaller <martin.schaller>
Component: BasesystemAssignee: Christian Zoz <zoz>
Status: VERIFIED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: unspecified   
Target Milestone: ---   
Hardware: x86   
OS: SuSE Linux 10.0   
Whiteboard:
Found By: Customer Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

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.