.bashrc_fix_whatsmyip_function#107
Conversation
Add support to correctly identify actual wlan interface name for whatsmyip function. Where wlan0 was hard coded we now try to identify actual device. On newer Ubuntu installs, the device is usually begins with wlp. If the iw command is not available, we fail back to hard coded wlan0. Also added a carriage return after the command to begin a new line.
|
I was looking into updating this as well using nmcli, Maybe we combine iw and nmcli as options. function whatsmyip () { } |
|
It's been over a year and I never heard back from Chris that this pull was merged so I don't think anyone cares at this point. |
|
@ChrisTitusTech Please review, this would be a useful change for many setups that don't have wlan0 as their default connection |
Still worth trying :) |
Add support to correctly identify actual wlan interface name for whatsmyip function. Where wlan0 was hard coded we now try to identify actual device. On newer Ubuntu installs, the device is usually begins with wlp. If the iw command is not available, we fail back to hard coded wlan0. Also added a carriage return after the command to begin a new line.