mirror of
https://github.com/openwrt/routing.git
synced 2026-04-15 19:02:12 +00:00
fix check for config existence
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user