From 99a1d8bd045ef3775863a3151abf4c0831ae13bc Mon Sep 17 00:00:00 2001 From: Sean Robinson Date: Fri, 21 Aug 2009 05:53:13 -0700 Subject: [PATCH] Add more env vars to disconnection prescript shell See 5582b0145e for more info. Signed-off-by: Sean Robinson --- wifi-radar | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/wifi-radar b/wifi-radar index e4c701a..8081ee4 100755 --- a/wifi-radar +++ b/wifi-radar @@ -592,12 +592,15 @@ class ConnectionManager(): # Let's run the disconnection prescript if self.profile['dis_prescript'].strip() != '': self.logger.info("executing disconnection prescript: %s" % (self.profile['dis_prescript'], )) - shellcmd([self.profile['dis_prescript']], - environment = { "WIFIRADAR_IP": self.get_current_ip() or '0.0.0.0', - "WIFIRADAR_ESSID": self.get_current_essid() or '', - "WIFIRADAR_BSSID": self.get_current_bssid() or '00:00:00:00:00:00', - "WIFIRADAR_IF": device or '' - } + shellcmd([self.profile['dis_prescript']], environment = { + "WIFIRADAR_IP": self.get_current_ip() or '0.0.0.0', + "WIFIRADAR_ESSID": self.get_current_essid() or '', + "WIFIRADAR_BSSID": self.get_current_bssid() or '00:00:00:00:00:00', + "WIFIRADAR_PROFILE": make_section_name(self.profile['essid'], self.profile['bssid']), + "WIFIRADAR_ENCMODE": self._get_enc_mode(self.profile['use_wpa'], self.profile['key']), + "WIFIRADAR_SECMODE": self.profile['security'], + "WIFIRADAR_IF": device or '' + } ) self.logger.info("Kill off any existing DHCP clients running...") if os.path.isfile(self.confFile.get_opt('DHCP.pidfile')): -- 2.11.4.GIT