diff --git a/LuCI/cronosagent b/LuCI/config/cronosagent similarity index 100% rename from LuCI/cronosagent rename to LuCI/config/cronosagent diff --git a/cronosagent.sh b/cronosagent.sh index 5dafbfc..d30b06c 100755 --- a/cronosagent.sh +++ b/cronosagent.sh @@ -9,10 +9,10 @@ fi if [ -f /etc/config/brandmeister ] then # Read configuration from uCI/LuCI on OpenWRT - REPEATER_NUMBER=$(uci get cronosagent.number) - REPEATER_ADDRESS=$(uci get cronosagent.repeaterAddress) - SERVER_ADDRESS=$(uci get cronosagent.serverAddress) - SERVER_PASSWORD=$(uci get cronosagent.serverPassword) + REPEATER_NUMBER=$(uci get cronosagent.@cronosagent[0].number) + REPEATER_ADDRESS=$(uci get cronosagent.@cronosagent[0].repeaterAddress) + SERVER_ADDRESS=$(uci get cronosagent.@cronosagent[0].serverAddress) + SERVER_PASSWORD=$(uci get cronosagent.@cronosagent[0].serverPassword) fi if [ -n "$1" ]