fix display of supported modes
This commit is contained in:
parent
030fa24210
commit
2b06e8fc7c
2
wpe
2
wpe
@ -25,7 +25,7 @@ fi
|
|||||||
echo "[+] Available network interfaces and capabilities:"
|
echo "[+] Available network interfaces and capabilities:"
|
||||||
iw dev | awk '/Interface/ {iface=$2; print "- Interface: " iface} /type/ {print " Current Mode: "$2}';
|
iw dev | awk '/Interface/ {iface=$2; print "- Interface: " iface} /type/ {print " Current Mode: "$2}';
|
||||||
echo "[+] Supported modes for each interface:";
|
echo "[+] Supported modes for each interface:";
|
||||||
iw list | awk '/Wiphy/ {wiphy=$2} /Supported interface modes/ {print " " wiphy; getline; while ($1 ~ /^[ \t]/) {print " "$1; getline}}'
|
iw list | awk '/Wiphy/ {wiphy=$2} /Supported interface modes:/ {getline; while ($1 ~ /^[ ]/) {print " " wiphy " supports: " $1; getline}}';
|
||||||
|
|
||||||
# Prompt user for the network card
|
# Prompt user for the network card
|
||||||
while true; do
|
while true; do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user