Closed mrclksr closed 3 years ago
if f'wlan{wlanNum}' not in (rcconf and rcconflocal):
Assuming rcconf is not None, only rcconflocal is checked if it contains wlan{wlanNum}. Concatenate lists with + to check both.
if f'wlans_{card}=' in (rcconf or rcconflocal):
Only rcconf is checked if it's not None. Concatenate lists with + to check both.
I can pull that in but netcardmgr to automate is deprecated in the later version. This code will be removed soon.
Thank you for merging, anyway :)
if f'wlan{wlanNum}' not in (rcconf and rcconflocal):
Assuming rcconf is not None, only rcconflocal is checked if it contains wlan{wlanNum}. Concatenate lists with + to check both.
if f'wlans_{card}=' in (rcconf or rcconflocal):
Only rcconf is checked if it's not None. Concatenate lists with + to check both.