mirror of
https://github.com/gtxaspec/wz_mini_hacks.git
synced 2024-11-22 21:47:19 +00:00
flush old wlan0 ip
This commit is contained in:
parent
d82ba37884
commit
685a4ba031
@ -30,9 +30,9 @@ if [[ "$ENABLE_USB_ETH" == "true" ]]; then
|
|||||||
ifconfig eth0 down
|
ifconfig eth0 down
|
||||||
ifconfig wlan0 down
|
ifconfig wlan0 down
|
||||||
|
|
||||||
/media/mmc/wz_mini/bin/busybox ip link set wlan0 name wlanold
|
/media/mmc/wz_mini/bin/busybox ip link set wlan0 name wlanold
|
||||||
/media/mmc/wz_mini/bin/busybox ip addr flush dev wlanold
|
/media/mmc/wz_mini/bin/busybox ip addr flush dev wlanold
|
||||||
/media/mmc/wz_mini/bin/busybox ip link set eth0 name wlan0
|
/media/mmc/wz_mini/bin/busybox ip link set eth0 name wlan0
|
||||||
|
|
||||||
ifconfig wlan0 up
|
ifconfig wlan0 up
|
||||||
pkill udhcpc
|
pkill udhcpc
|
||||||
@ -51,6 +51,7 @@ if [[ "$ENABLE_USB_DIRECT" == "true" ]]; then
|
|||||||
ifconfig wlan0 down
|
ifconfig wlan0 down
|
||||||
/media/mmc/wz_mini/bin/busybox ip link set wlan0 address 02:01:02:03:04:08
|
/media/mmc/wz_mini/bin/busybox ip link set wlan0 address 02:01:02:03:04:08
|
||||||
/media/mmc/wz_mini/bin/busybox ip link set wlan0 name wlanold
|
/media/mmc/wz_mini/bin/busybox ip link set wlan0 name wlanold
|
||||||
|
/media/mmc/wz_mini/bin/busybox ip addr flush dev wlanold
|
||||||
/media/mmc/wz_mini/bin/busybox ip link set usb0 name wlan0
|
/media/mmc/wz_mini/bin/busybox ip link set usb0 name wlan0
|
||||||
|
|
||||||
ifconfig wlan0 up
|
ifconfig wlan0 up
|
||||||
|
Loading…
Reference in New Issue
Block a user