From 0a893b52a3d81047c4dfa5b1773e32df65166bdd Mon Sep 17 00:00:00 2001 From: probonopd Date: Thu, 11 Mar 2021 19:08:55 +0100 Subject: [PATCH] Recommend Realtek RTL8188CUS USB dongle if no supported wireless devices are found https://github.com/helloSystem/docs/issues/21#issuecomment-796929172 --- Preferences/Wireless Networks.app/Resources/dialog.py | 4 ++-- Preferences/Wireless Networks.app/Resources/wireless-networks | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Preferences/Wireless Networks.app/Resources/dialog.py b/Preferences/Wireless Networks.app/Resources/dialog.py index 75882ec6..f31bc62f 100755 --- a/Preferences/Wireless Networks.app/Resources/dialog.py +++ b/Preferences/Wireless Networks.app/Resources/dialog.py @@ -23,7 +23,7 @@ def __init__(self): items = str(subprocess.check_output(["sysctl", "-b", "net.wlan.devices"]), "utf-8").split(" ") if(len(items) == 0): - show_message("No wireless devices found.") + show_message("No wireless devices found. You might want to consider using a USB dongle with the Realtek RTL8188CUS chipset.") exit(0) elif(len(items) == 1): print(items[0]) @@ -42,7 +42,7 @@ def __init__(self): app = QtWidgets.QApplication(sys.argv) if sys.argv.pop() == "warning": - show_message("No wireless devices found.") + show_message("No wireless devices found. You might want to consider using a USB dongle with the Realtek RTL8188CUS chipset.") else: Dialog() diff --git a/Preferences/Wireless Networks.app/Resources/wireless-networks b/Preferences/Wireless Networks.app/Resources/wireless-networks index 8edab9fb..5d6797aa 100755 --- a/Preferences/Wireless Networks.app/Resources/wireless-networks +++ b/Preferences/Wireless Networks.app/Resources/wireless-networks @@ -82,7 +82,7 @@ fi # warning() { - "${HERE}/dialog.py" warning "$1" + "${HERE}/dialog.py" warning } ask_wifi_list() {