openwrtv3/openwrt/target/default/target_skeleton/sbin/wifi

5 lines
151 B
Bash
Executable file

#!/bin/ash
alias debug=${DEBUG:-:}
debug "### wifi $1 ###"
if=$(cat /proc/net/dev | awk -F: '/eth/ {wifi=$1;} END { print wifi}')
$DEBUG wlconf $if $1