mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-30 20:43:02 +02:00
Merge pull request #1343 from kernelkit/misc-wifi-fixes
This commit is contained in:
@@ -23,7 +23,7 @@ def detect_wifi_mode(ifname):
|
||||
def find_primary_interface_from_config(ifname):
|
||||
"""Find primary interface by reading hostapd config files"""
|
||||
try:
|
||||
file_list = HOST.run(tuple("ls /etc/hostapd-*.conf".split()), default="")
|
||||
file_list = HOST.run(("sh", "-c", "ls /etc/hostapd-*.conf"), default="")
|
||||
if not file_list:
|
||||
return None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user