projects
/
feed
/
routing.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8dec3dc
)
fix check for config existence
author
Moritz Warning
<moritzwarning@web.de>
Mon, 9 May 2016 18:29:52 +0000
(20:29 +0200)
committer
Moritz Warning
<moritzwarning@web.de>
Mon, 9 May 2016 18:29:52 +0000
(20:29 +0200)
nodogsplash/files/nodogsplash.init
patch
|
blob
|
history
diff --git
a/nodogsplash/files/nodogsplash.init
b/nodogsplash/files/nodogsplash.init
index 1fa0c792d49c2545b122d88818fd8a48b7d28089..79e7456beb45b6f0723a1811a20e2b8854da499b 100755
(executable)
--- 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
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
nolog error "Configuration file '$file' doesn't exist"
return 0
fi
- cat
$val
> CONFIGFILE
+ cat
"$val" >
> CONFIGFILE
fi
config_get val "$cfg" network
fi
config_get val "$cfg" network