mirror of
https://github.com/gtxaspec/wz_mini_hacks.git
synced 2024-11-22 13:37:19 +00:00
fix usb-direct mode on new config
This commit is contained in:
parent
8d70f278e3
commit
edac619ae6
@ -48,16 +48,15 @@ wait_wlan() {
|
|||||||
##Check if the driver has been loaded for the onboard wlan0, store the MAC.
|
##Check if the driver has been loaded for the onboard wlan0, store the MAC.
|
||||||
while true
|
while true
|
||||||
do
|
do
|
||||||
if ifconfig wlan0 | grep "inet addr";
|
if ifconfig wlan0 | grep "inet addr"; then
|
||||||
then
|
store_mac
|
||||||
store_mac
|
break
|
||||||
break
|
elif ifconfig wlan0 | grep "inet addr" && [[ "$ENABLE_USB_ETH" == "true" || "$ENABLE_USB_DIRECT" == "true" ]]; then
|
||||||
elif [[ "$ENABLE_USB_ETH" == "true" || "$ENABLE_USB_DIRECT" == "true" ]]; then
|
store_mac
|
||||||
store_mac
|
break
|
||||||
break
|
|
||||||
fi
|
fi
|
||||||
echo " wlan0 not ready yet..."
|
echo " wlan0 not ready yet..."
|
||||||
sleep 5
|
sleep 5
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user