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 2501 by niro, Fri Sep 11 08:20:34 2015 UTC revision 2502 by niro, Fri Sep 11 08:25:37 2015 UTC
# Line 18  run_hardware_detect() Line 18  run_hardware_detect()
18   local monitor_resolution   local monitor_resolution
19   local keymap   local keymap
20   local hwdetected   local hwdetected
21     local auth
22   local i   local i
23    
24   if [[ -z ${serial} ]]   if [[ -z ${serial} ]]
# Line 105  run_hardware_detect() Line 106  run_hardware_detect()
106   # now setup some empty database entries if the does not exist   # now setup some empty database entries if the does not exist
107   for i in user root vnc   for i in user root vnc
108   do   do
109   if [[ -z $(mysqldo "select ${i} from client_auth where serial=${serial};") ]]   auth=$(mysqldo "select ${i} from client_auth where serial=${serial};")
110     if [[ -z ${auth} ]] || [[ ${auth} = NULL ]]
111   then   then
112   decho "set empty ${i} pass"   decho "set empty ${i} pass"
113   import_resource client_auth "${serial}" "${i}" ""   import_resource client_auth "${serial}" "${i}" ""

Legend:
Removed from v.2501  
changed lines
  Added in v.2502