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 /kickstart.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 'kickstart.py')
-rw-r--r-- | kickstart.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/kickstart.py b/kickstart.py index 08c9bc13b..643c18201 100644 --- a/kickstart.py +++ b/kickstart.py @@ -485,7 +485,7 @@ class KickstartBase(BaseInstallClass): (args, extra) = isys.getopt(args, '', [ 'bootproto=', 'ip=', 'netmask=', 'gateway=', 'nameserver=', 'nodns', 'device=', 'hostname=', 'ethtool=', 'onboot=', - 'dhcpclass=']) + 'dhcpclass=', 'essid=', 'wepkey=']) bootProto = "dhcp" ip = None netmask = "" @@ -493,6 +493,8 @@ class KickstartBase(BaseInstallClass): nameserver = "" hostname = "" ethtool = "" + essid = "" + wepkey = "" onboot = 1 device = None dhcpclass = None @@ -514,6 +516,10 @@ class KickstartBase(BaseInstallClass): hostname = arg elif str== "--ethtool": ethtool = arg + elif str == "--essid": + essid = arg + elif str == "--wepkey": + wepkey = arg elif str== "--onboot": if arg == 'no': onboot = 0 @@ -522,7 +528,7 @@ class KickstartBase(BaseInstallClass): elif str == "--class": dhcpclass = arg - self.setNetwork(id, bootProto, ip, netmask, ethtool, device=device, onboot=onboot, dhcpclass=dhcpclass) + self.setNetwork(id, bootProto, ip, netmask, ethtool, device=device, onboot=onboot, dhcpclass=dhcpclass, essid=essid, wepkey=wepkey) if hostname != "": self.setHostname(id, hostname, override = 1) if nameserver != "": |