forked from freifunk-franken/firmware
fff-babeld: clean up type/rxcost option handling
Signed-off-by: Johannes Kimmel <fff@bareminimum.eu>
This commit is contained in:
parent
fcb19bd233
commit
057541129d
|
@ -47,18 +47,10 @@ configure() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# get type
|
# get type
|
||||||
if type=$(uci -q get gateway.$name.type); then
|
type=$(uci -q get gateway.$name.type) || type=wired
|
||||||
type="$type"
|
|
||||||
else
|
|
||||||
type=wired
|
|
||||||
fi
|
|
||||||
|
|
||||||
# get rxcost
|
# get rxcost
|
||||||
if rxcost=$(uci -q get gateway.$name.rxcost); then
|
rxcost=$(uci -q get gateway.$name.rxcost) || rxcost=96
|
||||||
rxcost="$rxcost"
|
|
||||||
else
|
|
||||||
rxcost=96
|
|
||||||
fi
|
|
||||||
|
|
||||||
# add interface
|
# add interface
|
||||||
uci set network.$prefixname=interface
|
uci set network.$prefixname=interface
|
||||||
|
|
Loading…
Reference in New Issue