Magellan Linux

Diff of /mcore-src/trunk/mcore-tools/src/modules/basic-video/graphic.client.class.in

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

mcore-src/trunk/mcore-tools/daemon/client/include/graphic.client.class revision 2018 by niro, Mon Aug 13 11:08:28 2012 UTC mcore-src/trunk/mcore-tools/src/modules/basic-video/graphic.client.class.in revision 2194 by niro, Fri Jan 10 14:41:09 2014 UTC
# Line 25  helper_graphic_rebuild_xorg_conf_d() Line 25  helper_graphic_rebuild_xorg_conf_d()
25    
26   # rebuild 25-gfxcard.conf   # rebuild 25-gfxcard.conf
27   # always clear the config   # always clear the config
28   CONFIG="${MROOT}/etc/X11/xorg.conf.d/25-device.conf"   CONFIG="${MROOT}@@SYSCONFDIR@@/X11/xorg.conf.d/25-device.conf"
29   clearconfig   clearconfig
30     addconfig "# Autogenerated by mcored"
31   # but only add lines if some values are found in config.d dir   # but only add lines if some values are found in config.d dir
32   if path_not_empty ${MROOT}/${MCORE_CONFIG_PATH}/xorg/device   if path_not_empty ${MROOT}/${MCORE_CONFIG_PATH}/xorg/device
33   then   then
# Line 37  helper_graphic_rebuild_xorg_conf_d() Line 38  helper_graphic_rebuild_xorg_conf_d()
38    
39   # rebuild 25-module.conf   # rebuild 25-module.conf
40   # always clear the config   # always clear the config
41   CONFIG="${MROOT}/etc/X11/xorg.conf.d/25-module.conf"   CONFIG="${MROOT}@@SYSCONFDIR@@/X11/xorg.conf.d/25-module.conf"
42   clearconfig   clearconfig
43     addconfig "# Autogenerated by mcored"
44   # but only add lines if some values are found in config.d dir   # but only add lines if some values are found in config.d dir
45   if path_not_empty ${MROOT}/${MCORE_CONFIG_PATH}/xorg/module   if path_not_empty ${MROOT}/${MCORE_CONFIG_PATH}/xorg/module
46   then   then
# Line 49  helper_graphic_rebuild_xorg_conf_d() Line 51  helper_graphic_rebuild_xorg_conf_d()
51    
52   # rebuild 25-screen.conf   # rebuild 25-screen.conf
53   # always clear the config   # always clear the config
54   CONFIG="${MROOT}/etc/X11/xorg.conf.d/25-screen.conf"   CONFIG="${MROOT}@@SYSCONFDIR@@/X11/xorg.conf.d/25-screen.conf"
55   clearconfig   clearconfig
56     addconfig "# Autogenerated by mcored"
57   # but only add lines if some values are found in config.d dir   # but only add lines if some values are found in config.d dir
58   if path_not_empty ${MROOT}/${MCORE_CONFIG_PATH}/xorg/screen   if path_not_empty ${MROOT}/${MCORE_CONFIG_PATH}/xorg/screen
59   then   then
# Line 163  set_graphic_refresh() Line 166  set_graphic_refresh()
166  set_graphic_driver()  set_graphic_driver()
167  {  {
168   local driver="$1"   local driver="$1"
169   local driverdir="/usr/lib/xorg/modules/drivers"   local driverdir="@@LIBDIR@@/xorg/modules/drivers"
170   local CONFIG   local CONFIG
171   [[ -z ${driver} ]] && help_graphic_driver && return 1   [[ -z ${driver} ]] && help_graphic_driver && return 1
172    
# Line 187  set_graphic_driver() Line 190  set_graphic_driver()
190  get_graphic_driver()  get_graphic_driver()
191  {  {
192   local action="$1"   local action="$1"
193   local driverdir="/usr/lib/xorg/modules/drivers"   local driverdir="@@LIBDIR@@/xorg/modules/drivers"
194   local driver   local driver
195   local config="${MCORE_CONFIG_PATH}/xorg/device/25-device.conf"   local config="${MCORE_CONFIG_PATH}/xorg/device/25-device.conf"
196   local i   local i
# Line 203  get_graphic_driver() Line 206  get_graphic_driver()
206   fi   fi
207   ;;   ;;
208   system)   system)
209   for i in $(find ${MROOT}/${driverdir} -mindepth 1 -maxdepth 1 -type f | sort)   driver=$(list_files_in_directory ${MROOT}/${driverdir} -mindepth 1 -maxdepth 1 | sed s':_drv.so::g')
  do  
  driver="${driver} $(basename ${i} _drv.so)"  
  done  
210   rvecho "${driver}"   rvecho "${driver}"
211   ;;   ;;
212   *)   *)

Legend:
Removed from v.2018  
changed lines
  Added in v.2194