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
3a1f25dd
Commit
3a1f25dd
authored
Jan 09, 2013
by
Simó Albert i Beltran
Browse files
Remove unneeded grep in qmp_get_llocal_for_dev function of qmp_functions.sh to optimize.
parent
6e2d6a17
Changes
1
Hide whitespace changes
Inline
Side-by-side
packages/qmp-small-node/files/etc/qmp/qmp_functions.sh
View file @
3a1f25dd
...
@@ -36,7 +36,7 @@ SOURCE_NETWORK=1
...
@@ -36,7 +36,7 @@ SOURCE_NETWORK=1
qmp_get_llocal_for_dev
()
{
qmp_get_llocal_for_dev
()
{
local
dev
=
$1
local
dev
=
$1
ip a show dev
$dev
|
grep
inet6 |
awk
'
{print $2}'
ip a show dev
$dev
|
awk
'/inet6/
{print $2}'
}
}
...
...
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