Developing lightweight computation at the DSG edge

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

Added qmp_is_in function to search an item in a list.

parent c93a40da
......@@ -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()
{
......
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