I have two USB wifi adapters plugged into a powered hub. When I reboot, one of them (wlan1) does not show. In order to get it to show I have to unplug it and reinsert it. Then wlan1 shows on a ifconfig and all is well, until the next reboot. If someone can help me figure out why it is misbehaving. Or, maybe help me with a script that simulates the unplug/reinsert after boot. Something like Windows Device Manager "Scan for new hardware..."
/etc/network/interfaces
auto lo
auto eth0
iface lo inet loopback
iface eth0 inet dhcp
allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
allow-hotplug wlan1
iface wlan1 inet dhcp
wpa-ssid "SSID"
wpa-psk "password"
iface default inet dhcp
lsusb
root@raspberrypi:~# lsusb
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 004: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
Bus 001 Device 005: ID 0bda:8172 Realtek Semiconductor Corp. RTL8191SU 802.11n WLAN Adapter
Bus 001 Device 006: ID 148f:5370 Ralink Technology, Corp. RT5370 Wireless Adapter
Bus 001 Device 007: ID 046d:c00c Logitech, Inc. Optical Wheel Mouse
Bus 001 Device 008: ID 413c:2106 Dell Computer Corp. Dell QuietKey Keyboard
The RTL8191 is the problem child.
Cheers.