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>
This commit is contained in:
parent
20ecca34c0
commit
5988d29289
|
@ -1,6 +1,6 @@
|
||||||
configure() {
|
configure() {
|
||||||
# check if gateway config exists
|
# 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."
|
echo "ERROR: Gateway config could not be parsed or does not exist."
|
||||||
|
|
||||||
return 1
|
return 1
|
||||||
|
|
Loading…
Reference in New Issue