Developing lightweight computation at the DSG edge
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Quick Mesh Project
qMp packages
Commits
febb2204
Commit
febb2204
authored
Apr 23, 2013
by
Simó Albert i Beltran
Browse files
Improve qmp_get_wifi_devices function.
parent
aaba5ee6
Changes
1
Hide whitespace changes
Inline
Side-by-side
packages/qmp-system/files/etc/qmp/qmp_common.sh
View file @
febb2204
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment