From ad4fa2a602af476c2524ff125e7e32372dc23790 Mon Sep 17 00:00:00 2001 From: Daniel Hokka Zakrisson Date: Wed, 5 Dec 2007 19:37:37 +0000 Subject: [PATCH] Don't need the ESSID or IWCONFIG in BootManager. Write the MODE as well. --- source/steps/ReadNodeConfiguration.py | 7 ------- source/steps/WriteNetworkConfig.py | 4 +++- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/source/steps/ReadNodeConfiguration.py b/source/steps/ReadNodeConfiguration.py index 59b5250..def8bae 100644 --- a/source/steps/ReadNodeConfiguration.py +++ b/source/steps/ReadNodeConfiguration.py @@ -448,13 +448,6 @@ def __parse_configuration_file( vars, log, file_contents ): if name == "DISCONNECTED_OPERATION": vars['DISCONNECTED_OPERATION']= value.strip() - if name == "WLAN_SSID": - vars['ssid']= value.strip() - - if name == "WLAN_IWCONFIG": - vars['iwconfig']= value.strip() - - except IndexError, e: log.write( "Unable to parse configuration file\n" ) return 0 diff --git a/source/steps/WriteNetworkConfig.py b/source/steps/WriteNetworkConfig.py index 4e8518a..4d7f6fc 100644 --- a/source/steps/WriteNetworkConfig.py +++ b/source/steps/WriteNetworkConfig.py @@ -186,8 +186,10 @@ def Run( vars, log ): continue if setting['name'].upper() == "SSID": f.write("ESSID=%s\n" % setting['value']) - elif sett['name'].upper() == "IWCONFIG": + elif setting['name'].upper() == "IWCONFIG": f.write("IWCONFIG=%s\n" % setting['value']) + elif setting['name'].upper() == "MODE": + f.write("MODE=%s\n" % setting['value']) f.close() -- 2.43.0