forked from freifunk-franken/firmware
fff-layer3-config: show uci syntax errors
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:
parent
b26399283a
commit
57408f5dfb
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user