pull/1/head
Jordan Sokolic 2020-02-14 09:13:44 +02:00
parent 35bab1c2f6
commit 5e0f523b7a
1 changed files with 1 additions and 1 deletions

2
run.sh
View File

@ -10,7 +10,6 @@ function _usage {
}
function _get_phy_from_dev {
# test -n $IFACE || { echo "interface $IFACE not found"; exit 1; }
if [[ -f /sys/class/net/$IFACE/phy80211/name ]] ; then
PHY=$(cat /sys/class/net/$IFACE/phy80211/name 2>/dev/null)
else
@ -19,6 +18,7 @@ function _get_phy_from_dev {
fi
}
# we need this because openwrt renames the interface
function _get_dev_from_phy {
for dev in /sys/class/net/*; do
test -f $dev/phy80211/name && phy=$(cat $dev/phy80211/name 2>/dev/null)