ghostop14/sparrow-wifi

Replace depracatred iwconfig to for example to nmcli.

chiddekel opened this issue · 9 comments

Replace deprecated iwconfig with for example nmcli.

nmcli won't exist on all linux variants.

nmcli won't exist on all linux variants

R̶e̶p̶l̶a̶c̶e̶ add switch between nmcli and iwconfig

Fedora 36/37 do not have the deprecated iwconfig.
Which distros do not have an nmcli package?

https://www.reddit.com/r/Fedora/comments/w5ughy/iwconfig_not_available_on_fedora/

Raspbian won't for sure. Ubuntu still has both.

Raspbian won't for sure. Ubuntu still has both.

If not nmcli then install :

http://www.intellamech.com/RaspberryPi-projects/rpi_nmcli.html

Raspbian won't for sure. Ubuntu still has both.

The network-manager package looks like it does include nmcli.

https://archive.raspbian.org/raspbian/pool/main/n/network-manager/

nmcli won't exist on all linux variants.

But can be installed.

iwconfig: "I can still see it in Ubuntu 22.04 but I have been reading about its deprecation for some time now. It’s been removed from Red Hat and many other distributions.
Suggested alternative: Use the iw command."

https://itsfoss.com/deprecated-linux-commands/

So iw may be an alternative as well, which is more widely installed by default.