Developing lightweight computation at the DSG edge

Commit c1185ae6 authored by Agustí Moll Garcia's avatar Agustí Moll Garcia
Browse files

Can ignore with qmp config file. qmp.batadv.ignore = 1 + Ignore qmp_autoconf...

Can ignore with qmp config file. qmp.batadv.ignore = 1 + Ignore qmp_autoconf if qmp-batadv package wasn't selecte.
parent 9625b8e3
......@@ -126,7 +126,9 @@ qmp_create_batadv() {
local meshInterface
[ -z "$2" ] && meshInterface='mesh_batadv' || meshInterface="$2"
qmp_create_batadv_interface $meshDevice $batDevice $meshInterface
qmp_add_batadv_interface $lanInterface $batDevice
qmp_config_batadv $meshInterface
if [ ! $(qmp_uci_get batadv.ignore) -eq 1 ]; then
qmp_create_batadv_interface $meshDevice $batDevice $meshInterface
qmp_add_batadv_interface $lanInterface $batDevice
qmp_config_batadv $meshInterface
fi
}
......@@ -115,10 +115,12 @@ configure() {
qmp_configure_initial
qmp_configure
#Configure batman-adv
echo "[Configure batman-adv]"
. $QMP_DIR/qmp_batadv.sh
qmp_create_batadv
if [ -e "$QMP_DIR/qmp_batadv.sh" ]; then
#Configure batman-adv
echo "[Configure batman-adv]"
. $QMP_DIR/qmp_batadv.sh
qmp_create_batadv
fi
log ==================================================
log Rebooting
......
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