diff options
author | Jose M. Guisado <jguisado@soleta.eu> | 2022-02-01 10:21:41 +0100 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2022-04-08 13:35:07 +0200 |
commit | 395c326d75c3aa7ee15de2258bf49fa373983e1c (patch) | |
tree | df129f7c5adb053ccc055aff13b9d0f8eef88f1e /client/shared | |
parent | 2f9c9a93637838da747cf73416666d7c7d83e181 (diff) |
#1068 Detect room specific client config file
Before starting ogClient, script will lookup for specific classroom
configuration file, if it is found, then it will use it, otherwise it
uses the default configuration file.
The specific configuration file allows for finer-grain configurations
per room. Spaces in the room name are replaced by underscore.
For example. client: pc11, room name: "Virtual room".
If "Virtual_room.json" exists in client /opt/opengnsys/ogClient/cfg
it will use that config file.
If it doesn't exist, start ogclient with default config file
(ogclient.json)
Diffstat (limited to 'client/shared')
-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 e062a306..9022c374 100755 --- a/client/shared/etc/init/default.sh +++ b/client/shared/etc/init/default.sh @@ -19,7 +19,12 @@ echo "${MSG_LAUNCHCLIENT:-.}" [ -f /usr/local/etc/${LANG%_*}.qmap ] && export QWS_KEYBOARD="TTY:keymap=/usr/local/etc/${LANG%_*}.qmap" if [ "$ogstatus" != "offline" ]; then - /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 |