/[soft]/drakx-kbd-mouse-x11/trunk/lib/Xconfig/various.pm
ViewVC logotype

Diff of /drakx-kbd-mouse-x11/trunk/lib/Xconfig/various.pm

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

revision 911 by anssi, Sun Apr 17 14:01:53 2011 UTC revision 912 by anssi, Sun Apr 17 14:01:57 2011 UTC
# Line 393  sub setupFB { Line 393  sub setupFB {
393          }, $bios_vga_mode);          }, $bios_vga_mode);
394  }  }
395    
396    sub setup_kms {
397        change_bootloader_config(
398            sub {
399                my ($bootloader) = @_;
400                my $kms_ok = run_program::rooted($::prefix, "/sbin/display_driver_helper", "--is-kms-allowed") || 0;
401                return if $kms_ok != bootloader::get_append_simple($bootloader, "nokmsboot");
402                if ($kms_ok) {
403                    bootloader::remove_append_simple($bootloader, "nokmsboot");
404                } else {
405                    bootloader::set_append_simple($bootloader, "nokmsboot");
406                }
407                1;
408            });
409    }
410    
411  1;  1;

Legend:
Removed from v.911  
changed lines
  Added in v.912

  ViewVC Help
Powered by ViewVC 1.1.28