fix check for config existence
This commit is contained in:
parent
8dec3dc38b
commit
822d7cd8a8
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue