fix usb-direct mode on new config

This commit is contained in:
Alfonso Gamboa 2022-06-12 17:38:13 -07:00
parent 8d70f278e3
commit edac619ae6

View File

@ -48,11 +48,10 @@ wait_wlan() {
##Check if the driver has been loaded for the onboard wlan0, store the MAC.
while true
do
if ifconfig wlan0 | grep "inet addr";
then
if ifconfig wlan0 | grep "inet addr"; then
store_mac
break
elif [[ "$ENABLE_USB_ETH" == "true" || "$ENABLE_USB_DIRECT" == "true" ]]; then
elif ifconfig wlan0 | grep "inet addr" && [[ "$ENABLE_USB_ETH" == "true" || "$ENABLE_USB_DIRECT" == "true" ]]; then
store_mac
break
fi