From 4a794166490cc254f2eda5fd935c6bc47ca4b5f1 Mon Sep 17 00:00:00 2001 From: cyanide-burnout Date: Tue, 2 Aug 2016 08:21:44 +0400 Subject: [PATCH] ... --- LuCI/{ => config}/cronosagent | 0 cronosagent.sh | 8 ++++---- 2 files changed, 4 insertions(+), 4 deletions(-) rename LuCI/{ => config}/cronosagent (100%) 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" ]