diff options
| author | Moritz Warning <moritzwarning@web.de> | 2016-05-09 20:29:52 +0200 |
|---|---|---|
| committer | Moritz Warning <moritzwarning@web.de> | 2016-05-09 20:29:52 +0200 |
| commit | 822d7cd8a85b762acc89a6be55c5ccde910ddfa2 (patch) | |
| tree | 96048b54a63a5daecfe52df587fb437f82a6081b /nodogsplash | |
| parent | 8dec3dc38b514ed8f1212b51f9f6039af3fb0e04 (diff) | |
fix check for config existence
Diffstat (limited to 'nodogsplash')
| -rwxr-xr-x | nodogsplash/files/nodogsplash.init | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nodogsplash/files/nodogsplash.init b/nodogsplash/files/nodogsplash.init index 1fa0c79..79e7456 100755 --- a/nodogsplash/files/nodogsplash.init +++ b/nodogsplash/files/nodogsplash.init @@ -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 |
