Magellan Linux

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

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

revision 2787 by niro, Wed Feb 17 10:49:12 2016 UTC revision 2826 by niro, Wed Aug 2 08:02:44 2017 UTC
# Line 29  helper_hardware_netcard_driver() Line 29  helper_hardware_netcard_driver()
29   rvecho "${driver}"   rvecho "${driver}"
30  }  }
31    
32  #wlan.device  helper_hardware_wlan_device()
33  #wlan.driver  {
34     local device
35     local CONFIG
36    
37     device="$(get_hwinfo wlan)"
38    
39     CONFIG="${MROOT}/${MCORE_CONFIG_PATH}/hardware/wlan.device"
40     clearconfig
41     addconfig "${device}"
42    
43     rvecho "${device}"
44    }
45    
46    helper_hardware_wlan_driver()
47    {
48     local driver
49     local CONFIG
50    
51     driver="$(get_driver_modules wlan)"
52    
53     CONFIG="${MROOT}/${MCORE_CONFIG_PATH}/hardware/wlan.driver"
54     clearconfig
55     addconfig "${driver}"
56    
57     rvecho "${driver}"
58    }
59    
60  # hardware_graphic_device()  # hardware_graphic_device()
61  # {  # {
# Line 256  helper_hardware_connected-iface_info() Line 281  helper_hardware_connected-iface_info()
281   local CONFIG   local CONFIG
282    
283   local control_server_ip=$(dns_to_ip $(mcore-controlserver))   local control_server_ip=$(dns_to_ip $(mcore-controlserver))
284   local iface_ip=$(iface_for_remote_addr ${control_server_ip})   local iface=$(iface_for_remote_addr ${control_server_ip})
  local iface=$(iface_for_ip ${iface_ip})  
285    
286   CONFIG="${MROOT}/${MCORE_CONFIG_PATH}/hardware/connected-iface.info"   CONFIG="${MROOT}/${MCORE_CONFIG_PATH}/hardware/connected-iface.info"
287   clearconfig   clearconfig
# Line 272  helper_hardware_connected-iface_driver() Line 296  helper_hardware_connected-iface_driver()
296   local CONFIG   local CONFIG
297    
298   local control_server_ip=$(dns_to_ip $(mcore-controlserver))   local control_server_ip=$(dns_to_ip $(mcore-controlserver))
299   local iface_ip=$(iface_for_remote_addr ${control_server_ip})   local iface=$(iface_for_remote_addr ${control_server_ip})
  local iface=$(iface_for_ip ${iface_ip})  
300    
301   driver=$(get_driver_modules "netcard --only ${iface}")   driver=$(get_driver_modules "netcard --only ${iface}")
302    
# Line 327  help_hardware_detect() Line 350  help_hardware_detect()
350   mecho "get hardware.detect [action] [class]"   mecho "get hardware.detect [action] [class]"
351   mecho " Prints information about the systems hardware"   mecho " Prints information about the systems hardware"
352   mecho "  Available classes:"   mecho "  Available classes:"
353   mecho "   memory, cpu, arch, monitor, netcard, graphic, sound,"   mecho "   memory, cpu, arch, monitor, netcard, wlan, graphic, sound,"
354   mecho "   printer, disk, cdrom, keyboard, mouse"   mecho "   printer, disk, cdrom, keyboard, mouse, connected-iface"
355   mecho "  Available actions:"   mecho "  Available actions:"
356   mecho "   info   - general information about a hwclass"   mecho "   info   - general information about a hwclass"
357   mecho "   driver - needed drivers of selected class if available"   mecho "   driver - needed drivers of selected class if available"
# Line 352  get_hardware_detect() Line 375  get_hardware_detect()
375   arch) helper_hardware_"${class}"_"${action}" ;;   arch) helper_hardware_"${class}"_"${action}" ;;
376   monitor) helper_hardware_"${class}"_"${action}" ;;   monitor) helper_hardware_"${class}"_"${action}" ;;
377   netcard) helper_hardware_"${class}"_"${action}" ;;   netcard) helper_hardware_"${class}"_"${action}" ;;
378     wlan) helper_hardware_"${class}"_"${action}" ;;
379   graphic) helper_hardware_"${class}"_"${action}" ;;   graphic) helper_hardware_"${class}"_"${action}" ;;
380   sound) helper_hardware_"${class}"_"${action}" ;;   sound) helper_hardware_"${class}"_"${action}" ;;
381   printer) helper_hardware_"${class}"_"${action}" ;;   printer) helper_hardware_"${class}"_"${action}" ;;

Legend:
Removed from v.2787  
changed lines
  Added in v.2826