diff options
author | Jeremy Katz <katzj@redhat.com> | 2004-06-18 06:03:28 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2004-06-18 06:03:28 +0000 |
commit | 1e928416a431fc9c127aa4c1044c6908cd04752d (patch) | |
tree | e89d7e08b37743f13d47ed56683e4fad944a70ec /installclass.py | |
parent | 9f99ebaa92431d413567f18f76bb359082837a99 (diff) | |
download | anaconda-1e928416a431fc9c127aa4c1044c6908cd04752d.tar.gz anaconda-1e928416a431fc9c127aa4c1044c6908cd04752d.tar.xz anaconda-1e928416a431fc9c127aa4c1044c6908cd04752d.zip |
* add support in the second stage for setting wepkey and essid in kickstart.
* bug fix of ethtool setting not being done unless you had a static ip
Diffstat (limited to 'installclass.py')
-rw-r--r-- | installclass.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/installclass.py b/installclass.py index 3286ee56a..5b5c6e129 100644 --- a/installclass.py +++ b/installclass.py @@ -297,7 +297,7 @@ class BaseInstallClass: id.auth.enableCache = enableCache - def setNetwork(self, id, bootProto, ip, netmask, ethtool, device = None, onboot = 1, dhcpclass = None): + def setNetwork(self, id, bootProto, ip, netmask, ethtool, device = None, onboot = 1, dhcpclass = None, essid = None, wepkey + None): if bootProto: devices = id.network.available () if (devices and bootProto): @@ -317,8 +317,13 @@ class BaseInstallClass: dev.set (("ipaddr", ip)) if (netmask): dev.set (("netmask", netmask)) - if (ethtool): - dev.set (("ethtool_opts", ethtool)) + if ethtool: + dev.set (("ethtool_opts", ethtool)) + if isys.isWireless(device): + if essid: + dev.set(("essid", essid)) + if wepkey: + dev.set(("wepkey", wepkey)) def setLanguageSupport(self, id, langlist): if len (langlist) == 0: |