summaryrefslogtreecommitdiffstats
path: root/tools/frrcommon.sh.in
diff options
context:
space:
mode:
authorChristian Hopps <chopps@labn.net>2022-06-25 00:44:43 +0200
committerChristian Hopps <chopps@labn.net>2022-06-25 00:44:43 +0200
commit63b46c8fb4ea131fe57ba3c1df2290cad73e19c5 (patch)
tree5b7f2302c7b51f6c3e1ef5e4e1f3c6781b8f9858 /tools/frrcommon.sh.in
parentMerge pull request #11429 from donaldsharp/interface_funkiness (diff)
downloadfrr-63b46c8fb4ea131fe57ba3c1df2290cad73e19c5.tar.xz
frr-63b46c8fb4ea131fe57ba3c1df2290cad73e19c5.zip
tools: fix boot config load in watchfrr
2469a37f reversed the logic of the existence check for /etc/frr/frr.conf breaking boot config loading, fix it. Signed-off-by: Christian Hopps <chopps@labn.net>
Diffstat (limited to '')
-rwxr-xr-xtools/frrcommon.sh.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/frrcommon.sh.in b/tools/frrcommon.sh.in
index c168edc50..3344ff495 100755
--- a/tools/frrcommon.sh.in
+++ b/tools/frrcommon.sh.in
@@ -73,7 +73,7 @@ chownfrr() {
vtysh_b () {
[ "$1" = "watchfrr" ] && return 0
- if [ -r "$C_PATH/frr.conf" ]; then
+ if [ ! -r "$C_PATH/frr.conf" ]; then
log_warning_msg "$C_PATH/frr.conf does not exist; skipping config apply"
return 0
fi