[ 527.056802] Register Driver 'r8712u'
[ 527.060555] r8712u: Staging version
[ 527.065792] r8712u: register rtl8712_netdev_ops to netdev_ops
[ 527.071538] usb 1-1: r8712u: USB_SPEED_HIGH with 4 endpoints
[ 527.078059] usb 1-1: r8712u: Boot from EFUSE: Autoload OK
[ 527.877687] usb 1-1: r8712u: CustomerID = 0x0000
[ 527.882322] usb 1-1: r8712u: MAC Address from efuse = 64:d1:a3:18:e5:cd
[ 527.888912] usb 1-1: r8712u: Loading firmware from "rtl8712u.bin"
[ 527.895020] rc=0
[ 527.905638] usbcore: registered new interface driver r8712u
[ 592.407695] r8712u 1-1:1.0 wlan0: 1 RCR=0x153f00e
[ 592.413180] r8712u 1-1:1.0 wlan0: 2 RCR=0x553f00e
[ 592.527511] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 864.849026] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
root@nwsp2-lite:/ # route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 wlan0
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0
root@nwsp2-lite:/ # route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 wlan0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0
root@nwsp2-lite:/ #
root@nwsp2-lite:/ # route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 wlan0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
root@nwsp2-lite:/ #
(notice that order of eth0 and wlan0 is different compared with case 1)
BUS=="usb", SUBSYSTEM=="net", KERNEL=="wlan0", ACTION=="add", RUN="/fullpath-to/shellscript-bringupwlan0.sh"
BUS=="usb", SUBSYSTEM=="net", KERNEL=="wlan0", ACTION=="remove", RUN="/fullpath-to/shellscript-bringdownlan0.sh"
/sbin/route add default gw 192.168.1.1 dev eth0
Users browsing this forum: Bing Bot and 20 guests