mirror of
https://git.openwrt.org/feed/routing.git
synced 2025-01-08 11:47:51 +08:00
fix check for config existence
This commit is contained in:
parent
8dec3dc38b
commit
822d7cd8a8
@ -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 New Issue
Block a user