Developing lightweight computation at the DSG edge

Commit 1ac9cfd6 authored by Roger Pueyo Centelles's avatar Roger Pueyo Centelles
Browse files

[qmp-system] Remove debris


Signed-off-by: default avatarRoger Pueyo Centelles <roger.pueyo@guifi.net>
parent 87521b40
......@@ -259,10 +259,9 @@ qmp_configure_smart_network() {
continue
}
done
echo "AAA"
# If it is a wifi device
[ -e "/sys/class/net/$dev/phy80211" ] && {
echo $dev
j=0
while qmp_uci_test qmp.@wireless[$j]; do
[ "$(qmp_uci_get @wireless[$j].device)" == "$dev" ] && {
......@@ -274,7 +273,7 @@ echo "AAA"
j=$(($j+1))
done
} && continue
echo "CCCC"
# If its not wireless nor a default wan/lan, set it to mesh
[ "$dev" != "$default_lan" ] && [ "$dev" != "$default_wan" ] && {
inmesh="0"
......@@ -282,7 +281,7 @@ echo "CCCC"
for mdev in $mesh; do
[ "$mdev" == "$dev" ] && inmesh="1"
done
[ "$inmesh" == "0"] && mesh="$dev $mesh"
[ "$inmesh" == "0" ] && mesh="$dev $mesh"
}
done
......
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