fix check for config existence

This commit is contained in:
Moritz Warning 2016-05-09 20:29:52 +02:00
parent 8dec3dc38b
commit 822d7cd8a8
1 changed files with 2 additions and 2 deletions

View File

@ -152,11 +152,11 @@ generate_uci_config() {
config_get val "$cfg" config
if [ -n "$val" ] ; then
if [ -f "$val" ] ; then
if [ ! -f "$val" ] ; then
nolog error "Configuration file '$file' doesn't exist"
return 0
fi
cat $val > CONFIGFILE
cat "$val" >> CONFIGFILE
fi
config_get val "$cfg" network