X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=source%2Fsteps%2FReadNodeConfiguration.py;h=59b5250dd1713d4c20f7bdfa410121530498fed7;hb=061c6be07008820c8623cf528413b2a548e9cb1a;hp=295a36580b3bd6fe15b8a9e87fa56cb3cbcbc953;hpb=c3664d156c352c2abb88a469b3746feface696d0;p=bootmanager.git diff --git a/source/steps/ReadNodeConfiguration.py b/source/steps/ReadNodeConfiguration.py index 295a365..59b5250 100644 --- a/source/steps/ReadNodeConfiguration.py +++ b/source/steps/ReadNodeConfiguration.py @@ -72,6 +72,9 @@ def Run( vars, log ): dns2 IP_DNS2 hostname HOST_NAME domainname DOMAIN_NAME + -- wlan oriented -- + ssid WLAN_SSID + iwconfig WLAN_IWCONFIG the mac address is read from the machine unless it exists in the configuration file. @@ -445,6 +448,12 @@ 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" )