Magellan Linux

Diff of /mcore-src/trunk/mcore-tools/src/modules/hwinfo/hardware.control.class.in

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

revision 2496 by niro, Thu Sep 10 13:53:32 2015 UTC revision 2497 by niro, Thu Sep 10 14:08:40 2015 UTC
# Line 1  Line 1 
1  # $Id$  # $Id$
2    
3    provide hardware
4  require hwdetection  require hwdetection
5  require mysql  require mysql
6    
# Line 15  set_hardware_detect() Line 16  set_hardware_detect()
16   local graphic_driver   local graphic_driver
17   local monitor_info   local monitor_info
18   local monitor_resolution   local monitor_resolution
19     local hwdetected
20    
21     # first check if hardware detect was already done
22     hwdetected=$(mysqldo "select hwdetected from client_serials where serial=${serial};")
23     if [[ ${hwdetected} = 1 ]]
24     then
25     decho "hardware detection already run, aborting"
26     return 0
27     fi
28    
29   nsslsay_queue_init   nsslsay_queue_init
30   nsslsay_queue_add "nocolors"   nsslsay_queue_add "nocolors"
# Line 73  set_hardware_detect() Line 83  set_hardware_detect()
83   else   else
84   decho "no monitor_resolution found"   decho "no monitor_resolution found"
85   fi   fi
86    
87     # update the hwdetected flags
88     import_resource client_serial "${serial}" hwdetected 1
89  }  }

Legend:
Removed from v.2496  
changed lines
  Added in v.2497