Magellan Linux

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

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

revision 2554 by niro, Thu Sep 17 07:23:44 2015 UTC revision 2755 by niro, Tue Feb 2 14:11:44 2016 UTC
# Line 1  Line 1 
1  # $Id$  # $Id$
2    
3  push_config input_keymap  push_firstboot 10_input_keymap
4    
5    push_config 10_input_keymap
6    
7  help_input_mouse()  help_input_mouse()
8  {  {
# Line 51  set_input_keymap() Line 53  set_input_keymap()
53  control_input_keymap()  control_input_keymap()
54  {  {
55   local serial="${CLASS_ARGV[0]}"   local serial="${CLASS_ARGV[0]}"
56   push_config_input_keymap "${serial}"   push_config_10_input_keymap "${serial}"
57  }  }
58    
59  push_config_input_keymap()  push_config_10_input_keymap()
60  {  {
61   local serial="$1"   local serial="$1"
62   local value   local value
63    
64   value=$(mysqldo "select keymap from cfg_input where serial='${serial}'")   value=$(mysqldo "select keymap from cfg_input where serial='${serial}'")
65   control_client "${serial}" set input.keymap "${value}"   if [[ -z ${value} ]] || [[ ${value} = NULL ]]
66     then
67     decho "retval NULL, not running 'control_client '${serial}' set input.keymap '${value}''"
68     else
69     control_client "${serial}" set input.keymap "${value}"
70     fi
71    }
72    
73    push_firstboot_10_input_keymap()
74    {
75     local serial="$1"
76     local keymap
77    
78     keymap=$(mysqldo "select keymap from cfg_input where serial=${serial};")
79     if [[ -z ${keymap} ]] || [[ ${keymap} = NULL ]]
80     then
81     # set keymap to MCORE_DEFAULT_KEYMAP
82     decho "keymap='${MCORE_DEFAULT_KEYMAP}'"
83     import_resource cfg_input "${serial}" keymap "${MCORE_DEFAULT_KEYMAP}"
84     fi
85  }  }

Legend:
Removed from v.2554  
changed lines
  Added in v.2755