1 |
# $Id$ |
# $Id$ |
2 |
|
|
3 |
push_config 10_graphic_resolution |
push_config 10_graphic_resolution |
4 |
|
push_config 10_graphic_depth |
5 |
|
push_config 10_graphic_module |
6 |
|
|
7 |
help_graphic_resolution() |
help_graphic_resolution() |
8 |
{ |
{ |
28 |
control_client "${serial}" help graphic.driver |
control_client "${serial}" help graphic.driver |
29 |
} |
} |
30 |
|
|
31 |
# set_graphic_gfxcard $serial $value |
# set_graphic_driver $serial $value |
32 |
set_graphic_gfxcard() |
set_graphic_driver() |
33 |
{ |
{ |
34 |
local serial="${CLASS_ARGV[0]}" |
local serial="${CLASS_ARGV[0]}" |
35 |
local value="${CLASS_ARGV[1]}" |
local value="${CLASS_ARGV[1]}" |
37 |
import_resource cfg_graphic "${serial}" module "${value}" |
import_resource cfg_graphic "${serial}" module "${value}" |
38 |
} |
} |
39 |
|
|
40 |
|
control_graphic_driver() |
41 |
|
{ |
42 |
|
local serial="${CLASS_ARGV[0]}" |
43 |
|
push_config_10_graphic_driver "${serial}" |
44 |
|
} |
45 |
|
|
46 |
|
push_config_10_graphic_driver() |
47 |
|
{ |
48 |
|
local serial="$1" |
49 |
|
local value |
50 |
|
|
51 |
|
value=$(mysqldo "select module from cfg_graphic where serial='${serial}'") |
52 |
|
control_client "${serial}" set graphic.driver "${value}" |
53 |
|
} |
54 |
|
|
55 |
# set_graphic_resolution $serial $value |
# set_graphic_resolution $serial $value |
56 |
set_graphic_resolution() |
set_graphic_resolution() |
57 |
{ |
{ |
86 |
import_resource cfg_graphic "${serial}" depth "${value}" |
import_resource cfg_graphic "${serial}" depth "${value}" |
87 |
} |
} |
88 |
|
|
89 |
|
control_graphic_depth |
90 |
|
{ |
91 |
|
local serial="${CLASS_ARGV[0]}" |
92 |
|
push_config_10_graphic_depth "${serial}" |
93 |
|
} |
94 |
|
|
95 |
|
push_config_10_graphic_depth() |
96 |
|
{ |
97 |
|
local serial="$1" |
98 |
|
local value |
99 |
|
|
100 |
|
value=$(mysqldo "select depth from cfg_graphic where serial='${serial}'") |
101 |
|
control_client "${serial}" set graphic.depth "${value}" |
102 |
|
} |
103 |
|
|
104 |
# set_graphic_refesh $serial $value |
# set_graphic_refesh $serial $value |
105 |
set_graphic_refresh() |
set_graphic_refresh() |
106 |
{ |
{ |
114 |
control_graphic_refresh() |
control_graphic_refresh() |
115 |
{ |
{ |
116 |
local serial="${CLASS_ARGV[0]}" |
local serial="${CLASS_ARGV[0]}" |
117 |
|
push_config_10_graphic_refresh "${serial}" |
118 |
|
} |
119 |
|
|
120 |
|
push_config_10_graphic_refresh() |
121 |
|
{ |
122 |
|
local serial="$1" |
123 |
local value |
local value |
124 |
|
|
125 |
value=$(mysqldo "select hz from cfg_graphic where serial='${serial}'") |
value=$(mysqldo "select hz from cfg_graphic where serial='${serial}'") |