I'm Running multiple
Raspberry Pi 3's with Raspbian jessie.
There is a wifi interface on board, and I added another wifi USB dongle. On all devices, these defaulted to
After installing some tool on one of the devices (using apt-get) the names switched, so now the USB dongle became
wlan0 and the on-board wifi became
I understand that I could not rely on these names to be the same everywhere, but I need to make some assumptions, as the USB dongle has different capabilities than the on-board card. How could I
programmatically make my code target the right device each time?
If I have an SD card with a running environment, am I guaranteed to get the same network names if I plug the SD into another (identical) set of hardware? (evidence suggests otherwise)..
Can I run some script to assign the names the way I want (based on the hardware differences) so I can run the software predictably?
Can I switch the names back after they changed?
Please provide Raspbian specific commands. I have been trying random Linux/Ubuntu advice which didn't work or worse :(