X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/6516b8e39a52b3df85edc753aeb3bfe45ab8b66e..10cba154e9d639b5463d8a5a2e2f69aae1c01297:/openwrt/target/default/target_skeleton/sbin/wifi?ds=sidebyside diff --git a/openwrt/target/default/target_skeleton/sbin/wifi b/openwrt/target/default/target_skeleton/sbin/wifi index 6360fff04..a8d413df0 100755 --- a/openwrt/target/default/target_skeleton/sbin/wifi +++ b/openwrt/target/default/target_skeleton/sbin/wifi @@ -1,5 +1,5 @@ #!/bin/ash alias debug=${DEBUG:-:} debug "### wifi $1 ###" -if=$(awk 'sub(":","") {print $1}' /proc/net/wireless) +if=$(cat /proc/net/dev | awk -F: '/eth/ {wifi=$1;} END { print wifi}') $DEBUG wlconf $if $1