Magellan Linux

Diff of /mcore-src/trunk/mcore-tools/src/modules/basic-video/graphic.control.class.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2635 by niro, Thu Sep 17 10:46:46 2015 UTC revision 2636 by niro, Tue Sep 29 11:57:49 2015 UTC
# Line 1  Line 1 
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  {  {
# Line 26  help_graphic_driver() Line 28  help_graphic_driver()
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]}"
# Line 35  set_graphic_gfxcard() Line 37  set_graphic_gfxcard()
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  {  {
# Line 69  set_graphic_depth() Line 86  set_graphic_depth()
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  {  {
# Line 82  set_graphic_refresh() Line 114  set_graphic_refresh()
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}'")

Legend:
Removed from v.2635  
changed lines
  Added in v.2636