Merge branch 'master' into 241023_fpv_mavlink_cfg

pull/1087/head
cronyx 2023-10-24 17:08:41 +03:00 committed by GitHub
commit 416f93dbd0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -3,12 +3,10 @@ dev=$(fw_printenv -n wlandev)
mac=$(fw_printenv -n wlanmac)
set_wireless() {
file="-i /etc/wireless/interfaces/eth0"
path=/etc/wireless
if $path/usb "$dev" || $path/modem "$dev" || $path/sdio "$dev"; then
[ -n "$mac" ] && ip link set dev wlan0 address "$mac"
ifup wlan0
ifup wlan0 && file="-i /etc/wireless/interfaces/eth0"
fi
}