From d463661b9cedcbbfe7e5fba70a047dbb28f2078a Mon Sep 17 00:00:00 2001 From: wbx Date: Tue, 8 Feb 2005 08:21:32 +0000 Subject: add hackish makfile, so that other developers could build images. anyone shuld clean this up, but I am busy working on kernel stuff. ok @mbm git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@225 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/default/target_skeleton/sbin/wifi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'target/default/target_skeleton/sbin') 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 -- cgit v1.2.3