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
4a948ca5
Commit
4a948ca5
authored
Feb 13, 2013
by
Simó Albert i Beltran
Browse files
Added qmp_is_in function to search an item in a list.
parent
c93a40da
Changes
1
Hide whitespace changes
Inline
Side-by-side
packages/qmp-system/files/etc/qmp/qmp_functions.sh
View file @
4a948ca5
...
...
@@ -486,6 +486,20 @@ qmp_get_addr64() {
}
qmp_is_in
()
{
local
search
=
"
$1
"
shift
local
item
for
item
in
$@
do
if
[
"
$search
"
==
"
$item
"
]
then
return
0
fi
done
return
1
}
qmp_configure_rescue_ip_device
()
{
...
...
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