diff options
| author | Alexander Couzens <lynxis@fe80.eu> | 2015-03-05 12:52:01 +0100 |
|---|---|---|
| committer | Alexander Couzens <lynxis@fe80.eu> | 2015-03-05 18:00:52 +0100 |
| commit | dfa1e090fbabb0cb6b3beda2aa2aa4756b29c67a (patch) | |
| tree | 594700ba674485307219b3df27f06790467c5cef /nodogsplash | |
| parent | 375378d4de4bed0ceb52825eeb50b6fb044d1bb6 (diff) | |
nodogsplash: fix uci configuration by fixing append_config_option
append_config_option doesn't wrote anything to nodogsplash.conf.
Diffstat (limited to 'nodogsplash')
| -rwxr-xr-x | nodogsplash/files/nodogsplash.init | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nodogsplash/files/nodogsplash.init b/nodogsplash/files/nodogsplash.init index 3352aa9..424058e 100755 --- a/nodogsplash/files/nodogsplash.init +++ b/nodogsplash/files/nodogsplash.init @@ -36,13 +36,13 @@ nolog() { # will append "BindAddress 192.168.1.1" if uci bind_address is '192.168.1.1' append_config_option() { local val="" - local cfg="$1" - local config_file="$2" + local config_file="$1" + local cfg="$2" local option_name="$3" local config_counterpart="$4" local default="$5" config_get val "$cfg" "$option_name" "$default" - [ -n "$val" ] && echo "" >> $config_file + [ -n "$val" ] && echo "$config_counterpart $val" >> $config_file } setup_user_authentication() { |
