summaryrefslogtreecommitdiff
path: root/target/default/target_skeleton/sbin
diff options
context:
space:
mode:
Diffstat (limited to 'target/default/target_skeleton/sbin')
-rwxr-xr-xtarget/default/target_skeleton/sbin/wifi2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/default/target_skeleton/sbin/wifi b/target/default/target_skeleton/sbin/wifi
index 6360fff049..a8d413df07 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