Skip to content

Commit

Permalink
Recommend Realtek RTL8188CUS USB dongle if no supported wireless devi…
Browse files Browse the repository at this point in the history
  • Loading branch information
probonopd committed Mar 11, 2021
1 parent ccce5d5 commit 0a893b5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Preferences/Wireless Networks.app/Resources/dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand All @@ -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()

Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ fi
#

warning() {
"${HERE}/dialog.py" warning "$1"
"${HERE}/dialog.py" warning
}

ask_wifi_list() {
Expand Down

0 comments on commit 0a893b5

Please sign in to comment.