Bug 118765

Summary: improve wireless in sysconfig editor (wireless)
Product: [openSUSE] SUSE LINUX 10.0 Reporter: Stanislav Brabec <sbrabec>
Component: YaST2Assignee: Christian Zoz <zoz>
Status: VERIFIED FIXED QA Contact: Klaus Kämpf <kkaempf>
Severity: Minor    
Priority: P5 - None CC: lnussel, lslezak, mvidner
Version: Final   
Target Milestone: ---   
Hardware: Other   
OS: All   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Stanislav Brabec 2005-09-26 10:46:23 UTC
1. Minor bug:
/etc/sysconfig/network/wireless, key WIRELESS. Type is yesno, but default is
empty string. Setting to default, YaST complains.

2. Minor bug:
/etc/sysconfig/network/wireless, key WIRELESS_MODE. Type is string, but
description says, that it should be
list(Ad-hoc,Managed,Master,Repeater,Secondary,Auto) (with one of them as Default). 

3. Enhancement:
It would be nice, if sysconfig editor will be able to edit
/etc/sysconfig/network/ifcfg-*

4. Enhancement:
/etc/sysconfig/network/wireless, key WIRELESS. Description says: 
"If you have only one network interface card and it is wireless..." I guess that
it can be improved to "If you have only one wireless card..." by starting this
settings only for interfaces, which provide wireless extension.
Comment 1 Ladislav Slezák 2005-09-27 11:09:56 UTC
ad 3) sysconfig editor already configures that - see Hardware/Network node.

/etc/sysconfig/network/wireless is part of sysconfig package - reassigned
Comment 2 Christian Zoz 2005-09-27 11:40:27 UTC
ad 1)
There are many sysconfig files which use empty variables by default, despite the
metadata says yesno and default yes. This is a new approach to be able to change
the default values in an update case easily: As long as the user did never
change the variable, it is still empty and the new script can use a new default
value. When the user changed it, this setting will still be used.
(Example: all powersave variables)
Therefore we need a general solution for that new style sysconfig files. YesNo
must allow "" and 'setting to default' must empty the variable even if meta data
default says something else. I guess this needs still some discussion.
Ludwig, Seife, please comment.

Of course
## Type:        yesno
## Default:     ""
is wrong and will be changed. Joe should we drop the wireless file completely?

ad2)
See 1) wireless file should be removed completely.

ad 3) Would be nice to get the metadata there.

ad4) This are different statements. The first allows max one NIC at all, your
version speaks only about wireless NICs.. This setting is used only in very rare
cases.
Comment 3 Ludwig Nussel 2005-09-27 11:52:24 UTC
What about introducing another metadata tag that tells the sysconfig editor 
that empty means default? The sysconfig editor must then clear the value 
rather than actually setting the variables to their default value. 
Comment 4 Stanislav Brabec 2005-09-27 13:56:54 UTC
To lslezak - comment #1: I don't mean editing /etc/sysconfig/network/wireless
but /etc/sysconfig/network/ifcfg-*, eventually ifroute-*.
Comment 5 Christian Zoz 2005-12-19 16:19:08 UTC
/etc/sysconfig/network:
wireless was removed
ifcfg.template is mostly up to date.