diff --git a/lq-wave-300_5_x/files/etc/hotplug.d/net/00-wifi-detect b/lq-wave-300_5_x/files/etc/hotplug.d/net/00-wifi-detect index 0029b964d78936e4e5133853ad006c88a4df12c8..e9397af5d5d3988f80adf6e33bd4b48ac59496d0 100644 --- a/lq-wave-300_5_x/files/etc/hotplug.d/net/00-wifi-detect +++ b/lq-wave-300_5_x/files/etc/hotplug.d/net/00-wifi-detect @@ -27,7 +27,12 @@ wlan_ppa_process() { config_get network $cfg network - wlan_ppa_${ACTION} $network $ifname + lan=$(uci get network.$network.is_lan 2>/dev/null) + if [ "$lan" == "1" ]; then + wlan_ppa_${ACTION} lan $ifname + else + wlan_ppa_${ACTION} wan $ifname + fi } [ "${INTERFACE%%[0-9.]*}" != "wlan" ] && return