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:
Fabian Bläse 2024-02-22 12:12:55 +01:00
parent 94c5340700
commit 23a3af46d2
1 changed files with 8 additions and 8 deletions

View File

@ -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