mirror of
https://github.com/limosek/zaf-plugins.git
synced 2025-11-01 18:17:37 +01:00
Repaired ifphylist, added skeleton for new syntax of plugin
This commit is contained in:
@@ -2,9 +2,9 @@
|
||||
|
||||
wifi_ifphylist() {
|
||||
if [ "$1" = "phy" ]; then
|
||||
iw dev | grep Interface | cut -d ' ' -f 2
|
||||
else
|
||||
iw phy | grep Wiphy | cut -d ' ' -f 2
|
||||
else
|
||||
iw dev | grep Interface | cut -d ' ' -f 2
|
||||
fi
|
||||
}
|
||||
|
||||
@@ -43,7 +43,7 @@ wifi_if_discovery(){
|
||||
}
|
||||
|
||||
wifi_phy_discovery(){
|
||||
wifi_phylist | grep '^[a-z].*' | zaf_discovery "{#DEV}"
|
||||
wifi_phylist | grep '^[a-z].*' | zaf_discovery "{#DEV}"
|
||||
}
|
||||
|
||||
wifi_channels_discovery(){
|
||||
|
||||
34
iwx/plugin.mk
Normal file
34
iwx/plugin.mk
Normal file
@@ -0,0 +1,34 @@
|
||||
|
||||
NAME=iwx
|
||||
VERSION=0.5
|
||||
URL=https://raw.githubusercontent.com/limosek/zaf-plugins/master/iwx
|
||||
WEB=https://github.com/limosek/zaf-plugins
|
||||
DEPENDS_OPKG=busybox jshn
|
||||
DEPENDS_DPKG=dash
|
||||
DEPENDS_RPM=dash
|
||||
SUDO=iw
|
||||
INSTALL_BIN=functions.sh
|
||||
|
||||
ITEMS=if_discovery phy_discovery
|
||||
|
||||
define iwx/Description
|
||||
Plugin for wifi mac80211 informations and discovery
|
||||
endef
|
||||
|
||||
define iwx/Item/if_discovery/Description
|
||||
Discovery of wireless interfaces
|
||||
endef
|
||||
|
||||
define iwx/Item/if_discovery/Cmd
|
||||
wifi_if_discovery
|
||||
endef
|
||||
|
||||
define iwx/Item/phy_discovery/Description
|
||||
Discovery of wireless physical interfaces
|
||||
endef
|
||||
|
||||
define iwx/Item/phy_discovery/Cmd
|
||||
wifi_phy_discovery
|
||||
endef
|
||||
|
||||
|
||||
Reference in New Issue
Block a user