summaryrefslogtreecommitdiffstats
path: root/server/bin/setclientmode
diff options
context:
space:
mode:
authorramon <ramongomez@us.es>2014-04-25 08:38:01 +0000
committerramon <ramongomez@us.es>2014-04-25 08:38:01 +0000
commit97f6020f68eb732c73f9be1472c5138fb26073a6 (patch)
treec188de94c75902f68e59972f394e153cdf9eb497 /server/bin/setclientmode
parent7629e916e165e27a40fd1b9b1e1e3bfca9c80f5e (diff)
#585: Compatibilidad de opciĆ³n de resoluciĆ³n de pantalla en script {{{setclientmode}}}.
git-svn-id: https://opengnsys.es/svn/branches/version1.0@4251 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'server/bin/setclientmode')
-rwxr-xr-xserver/bin/setclientmode6
1 files changed, 5 insertions, 1 deletions
diff --git a/server/bin/setclientmode b/server/bin/setclientmode
index 4eda84dc..adbde585 100755
--- a/server/bin/setclientmode
+++ b/server/bin/setclientmode
@@ -85,7 +85,11 @@ for MAC in $ETHERNET; do
' winboot=', IFNULL (perfileshard.winboot, 'reboot'),
IF (aulas.dns IS NULL, '', CONCAT (' ogdns=', aulas.dns)),
IF (aulas.proxy IS NULL, '', CONCAT (' ogproxy=', aulas.proxy)),
- IF (menus.resolucion IS NULL, '', CONCAT (' video=', menus.resolucion))
+ CASE
+ WHEN menus.resolucion IS NULL THEN ''
+ WHEN menus.resolucion < 999 THEN CONCAT (' vga=', menus.resolucion)
+ ELSE menus.resolucion
+ END
FROM ordenadores
JOIN aulas USING (idaula)
JOIN repositorios USING (idrepositorio)