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 2189 by niro, Fri Jan 10 14:29:54 2014 UTC revision 2804 by niro, Thu Oct 13 10:05:42 2016 UTC
# Line 251  helper_hardware_memory_info() Line 251  helper_hardware_memory_info()
251   rvecho "${info}"   rvecho "${info}"
252  }  }
253    
254    helper_hardware_connected-iface_info()
255    {
256     local CONFIG
257    
258     local control_server_ip=$(dns_to_ip $(mcore-controlserver))
259     local iface_ip=$(iface_for_remote_addr ${control_server_ip})
260     local iface=$(iface_for_ip ${iface_ip})
261    
262     CONFIG="${MROOT}/${MCORE_CONFIG_PATH}/hardware/connected-iface.info"
263     clearconfig
264     addconfig "${iface}"
265    
266     rvecho "${iface}"
267    }
268    
269    helper_hardware_connected-iface_driver()
270    {
271     local driver
272     local CONFIG
273    
274     local control_server_ip=$(dns_to_ip $(mcore-controlserver))
275     local iface_ip=$(iface_for_remote_addr ${control_server_ip})
276     local iface=$(iface_for_ip ${iface_ip})
277    
278     driver=$(get_driver_modules "netcard --only ${iface}")
279    
280     CONFIG="${MROOT}/${MCORE_CONFIG_PATH}/hardware/connected-iface.driver"
281     clearconfig
282     addconfig "${driver}"
283    
284     rvecho "${driver}"
285    }
286    
287  # helper_hardware_framebuffer_info()  # helper_hardware_framebuffer_info()
288  # {  # {
289  # framebuffer.info  # framebuffer.info
# Line 295  help_hardware_detect() Line 328  help_hardware_detect()
328   mecho " Prints information about the systems hardware"   mecho " Prints information about the systems hardware"
329   mecho "  Available classes:"   mecho "  Available classes:"
330   mecho "   memory, cpu, arch, monitor, netcard, graphic, sound,"   mecho "   memory, cpu, arch, monitor, netcard, graphic, sound,"
331   mecho "   printer, disk, cdrom, keyboard, mouse"   mecho "   printer, disk, cdrom, keyboard, mouse, connected-iface"
332   mecho "  Available actions:"   mecho "  Available actions:"
333   mecho "   info   - general information about a hwclass"   mecho "   info   - general information about a hwclass"
334   mecho "   driver - needed drivers of selected class if available"   mecho "   driver - needed drivers of selected class if available"
# Line 304  help_hardware_detect() Line 337  help_hardware_detect()
337    
338  get_hardware_detect()  get_hardware_detect()
339  {  {
340   local action="$1"   local action="${CLASS_ARGV[0]}"
341   local class="$2"   local class="${CLASS_ARGV[1]}"
342    
343   # sanity check   # sanity check
344   case "${action}" in   case "${action}" in
# Line 326  get_hardware_detect() Line 359  get_hardware_detect()
359   cdrom) helper_hardware_"${class}"_"${action}" ;;   cdrom) helper_hardware_"${class}"_"${action}" ;;
360   keyboard) helper_hardware_"${class}"_"${action}" ;;   keyboard) helper_hardware_"${class}"_"${action}" ;;
361   mouse) helper_hardware_"${class}"_"${action}" ;;   mouse) helper_hardware_"${class}"_"${action}" ;;
362     connected-iface) helper_hardware_"${class}"_"${action}" ;;
363   *) help_hardware_detect && return 1 ;;   *) help_hardware_detect && return 1 ;;
364   esac   esac
365  }  }

Legend:
Removed from v.2189  
changed lines
  Added in v.2804