forked from freifunk-franken/firmware
fff-babel: remove erroneous error messages for absent babel implementation
Fixes: #306 Signed-off-by: Fabian Bläse <fabian@blaese.de>
This commit is contained in:
parent
7c0a24a80c
commit
d9de5a7d7f
|
@ -82,12 +82,12 @@ babel_reload() {
|
||||||
# switch implementation temporarily
|
# switch implementation temporarily
|
||||||
case $implementation in
|
case $implementation in
|
||||||
bird2)
|
bird2)
|
||||||
/etc/init.d/babeld stop 2>/dev/null
|
[ -f /etc/init.d/babeld ] && /etc/init.d/babeld stop 2>/dev/null
|
||||||
/etc/init.d/fff-bird start
|
[ -f /etc/init.d/fff-bird ] && /etc/init.d/fff-bird start
|
||||||
;;
|
;;
|
||||||
babeld)
|
babeld)
|
||||||
/etc/init.d/fff-bird stop 2>/dev/null
|
[ -f /etc/init.d/fff-bird ] && /etc/init.d/fff-bird stop 2>/dev/null
|
||||||
/etc/init.d/babeld start
|
[ -f /etc/init.d/babeld ] && /etc/init.d/babeld start
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
@ -101,12 +101,12 @@ babel_apply() {
|
||||||
# switch implementation persistently
|
# switch implementation persistently
|
||||||
case $implementation in
|
case $implementation in
|
||||||
bird2)
|
bird2)
|
||||||
/etc/init.d/babeld disable
|
[ -f /etc/init.d/babeld ] && /etc/init.d/babeld disable
|
||||||
/etc/init.d/fff-bird enable
|
[ -f /etc/init.d/fff-bird ] && /etc/init.d/fff-bird enable
|
||||||
;;
|
;;
|
||||||
babeld)
|
babeld)
|
||||||
/etc/init.d/fff-bird disable
|
[ -f /etc/init.d/fff-bird ] && /etc/init.d/fff-bird disable
|
||||||
/etc/init.d/babeld enable
|
[ -f /etc/init.d/babeld ] && /etc/init.d/babeld enable
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue