mirror of
https://github.com/gtxaspec/wz_mini_hacks.git
synced 2025-08-08 11:34:04 +00:00
wifi AP not needed when using eth0, after initial wifi setup has already completed
This commit is contained in:
@@ -48,10 +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 "HWaddr"; then
|
||||
store_mac
|
||||
break
|
||||
elif ifconfig wlan0 | grep "inet addr" && [[ "$ENABLE_USB_ETH" == "true" || "$ENABLE_USB_DIRECT" == "true" ]]; then
|
||||
elif ifconfig wlan0 | grep "HWaddr" && [[ "$ENABLE_USB_ETH" == "true" || "$ENABLE_USB_DIRECT" == "true" ]]; then
|
||||
store_mac
|
||||
break
|
||||
fi
|
||||
@@ -169,6 +169,7 @@ eth_wlan_up() {
|
||||
wpa_check() {
|
||||
#Check if wpa_supplicant has been created by iCamera
|
||||
if [ -e /tmp/wpa_supplicant.conf ]; then
|
||||
wait_wlan
|
||||
echo "wpa_supplicant.conf ready"
|
||||
wlanold_check $1
|
||||
else
|
||||
@@ -249,7 +250,6 @@ done
|
||||
}
|
||||
|
||||
first_run_check
|
||||
wait_wlan
|
||||
|
||||
#Set module dir depending on platform
|
||||
if [ -f /opt/wz_mini/tmp/.T20 ]; then
|
||||
|
@@ -1 +1 @@
|
||||
Sun Jul 17 03:23:48 PM PDT 2022
|
||||
Sun Jul 17 04:47:48 PM PDT 2022
|
||||
|
Reference in New Issue
Block a user