Developing lightweight computation at the DSG edge

Commit febb2204 authored by Simó Albert i Beltran's avatar Simó Albert i Beltran
Browse files

Improve qmp_get_wifi_devices function.

parent aaba5ee6
......@@ -177,7 +177,7 @@ qmp_debug() {
# Returns the names of the wifi devices from the system
qmp_get_wifi_devices() {
echo "$(ip link | grep -E ": (wifi|wlan).: "| cut -d: -f2)"
awk 'NR>2 { gsub(/:$/,"",$1); print $1 }' /proc/net/wireless
}
# Returns the MAC address of the wifi devices
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment