diff options
Diffstat (limited to 'client/shared/etc/init/default.sh')
-rwxr-xr-x | client/shared/etc/init/default.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/client/shared/etc/init/default.sh b/client/shared/etc/init/default.sh index 18ae37c5..109eccd3 100755 --- a/client/shared/etc/init/default.sh +++ b/client/shared/etc/init/default.sh @@ -22,7 +22,12 @@ if [ "$ogstatus" != "offline" ]; then if ogFindCache &>/dev/null; then /opt/opengnsys/bin/tiptorrent --root /opt/opengnsys/cache/opt/opengnsys/images -n 3 & fi - /opt/opengnsys/ogClient/./ogclient + GROUP_CONFIG=/opt/opengnsys/ogClient/cfg/${group/ /_}.json + if [ -f $GROUP_CONFIG ]; then + /opt/opengnsys/ogClient/./ogclient -c $GROUP_CONFIG + else + /opt/opengnsys/ogClient/./ogclient + fi else for FILE in index $OGGROUP $(ogGetIpAddress) do |