/[soft]/drakx-kbd-mouse-x11/trunk/tools/display_driver_helper
ViewVC logotype

Diff of /drakx-kbd-mouse-x11/trunk/tools/display_driver_helper

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

revision 2244 by anssi, Fri Dec 2 21:32:27 2011 UTC revision 2245 by anssi, Fri Dec 2 21:32:31 2011 UTC
# Line 249  load_driver() { Line 249  load_driver() {
249          local modulename          local modulename
250          local load_default=1          local load_default=1
251    
252          # NOTE: UPDATE when module-init-tools is upgraded to get better performance          for modulename in $(/sbin/modprobe -Rq "$1"); do
         # modprobe has -R option:  
         #for modulename in $(/home/anssi/module-init-tools-3.12/build/modprobe -Rq "$1"); do  
         # modprobe does not have -R option:  
         for mod in $(/sbin/modprobe -biqvn "$1"); do  
                 [ "$mod" = "insmod" ] && continue  
                 modulename="${mod##*/}"  
                 modulename="${modulename%%.*}"  
   
253                  check_driver "$modulename"                  check_driver "$modulename"
254                  case $? in                  case $? in
255                  1)      # a driver which needs handling by this script matches                  1)      # a driver which needs handling by this script matches
# Line 327  get_active_kms_drivers() { Line 319  get_active_kms_drivers() {
319                  device="$(dirname $device)"                  device="$(dirname $device)"
320                  [ -f "$device/modalias" ] || continue                  [ -f "$device/modalias" ] || continue
321                  modalias="$(cat "$device/modalias")"                  modalias="$(cat "$device/modalias")"
322                  for mod in $(/sbin/modprobe --first-time -biqvn "$modalias" 2>&1); do                  for modulename in $(/sbin/modprobe -Rq "$modalias"); do
                         modulename="${mod##*/}"  
                         modulename="${modulename%%.*}"  
323                          IS_KMS=                          IS_KMS=
324                          check_driver "$modulename" || continue                          check_driver "$modulename" || continue
325                          [ -n "$IS_KMS" ] && echo $modulename                          [ -n "$IS_KMS" ] && echo $modulename

Legend:
Removed from v.2244  
changed lines
  Added in v.2245

  ViewVC Help
Powered by ViewVC 1.1.30