fff-layer3-config: show uci syntax errors
ci/woodpecker/push/woodpecker Pipeline was successful Details

Do not hide uci errors when checking if gateway config exists, so an
appropriate uci error message is displayed. This can be helpful to find
syntax errors.

Signed-off-by: Fabian Bläse <fabian@blaese.de>
Reviewed-by: Christian Dresel <freifunk@dresel.systems>
Reviewed-by: Robert Langhammer <rlanghammer@web.de>
This commit is contained in:
Fabian Bläse 2022-04-03 12:09:30 +02:00
parent b26399283a
commit 57408f5dfb
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
configure() {
# check if gateway config exists
if ! uci -q show gateway > /dev/null; then
if ! uci show gateway > /dev/null; then
echo "ERROR: Gateway config could not be parsed or does not exist."
return 1