X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/51d47ba15e193e6c95a82784878601e1c1de44f4..d463661b9cedcbbfe7e5fba70a047dbb28f2078a:/target/default/target_skeleton/sbin/wifi diff --git a/target/default/target_skeleton/sbin/wifi b/target/default/target_skeleton/sbin/wifi index 6360fff04..a8d413df0 100755 --- a/target/default/target_skeleton/sbin/wifi +++ b/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