diff options
author | Anssi Hannula <anssi@mageia.org> | 2012-04-05 02:49:47 +0000 |
---|---|---|
committer | Anssi Hannula <anssi@mageia.org> | 2012-04-05 02:49:47 +0000 |
commit | ae005c070f2232f77d5ae70f9b1c5160a855b75f (patch) | |
tree | 014509b03f8757a65e04873c7db120c6de808005 /tools | |
parent | c61397fbd9ccea27c9879b6951cc518b664666e8 (diff) | |
download | drakx-kbd-mouse-x11-ae005c070f2232f77d5ae70f9b1c5160a855b75f.tar drakx-kbd-mouse-x11-ae005c070f2232f77d5ae70f9b1c5160a855b75f.tar.gz drakx-kbd-mouse-x11-ae005c070f2232f77d5ae70f9b1c5160a855b75f.tar.bz2 drakx-kbd-mouse-x11-ae005c070f2232f77d5ae70f9b1c5160a855b75f.tar.xz drakx-kbd-mouse-x11-ae005c070f2232f77d5ae70f9b1c5160a855b75f.zip |
display_driver_helper: add --setup-boot-kms action which
sets/unsets 'nokmsboot' boot option as necessary
Diffstat (limited to 'tools')
-rw-r--r-- | tools/display_driver_helper | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/display_driver_helper b/tools/display_driver_helper index b15fad6..255580b 100644 --- a/tools/display_driver_helper +++ b/tools/display_driver_helper @@ -376,6 +376,10 @@ get_active_kms_drivers() { done } +setup_boot_kms() { + perl -I/usr/lib/libDrakX -MXconfig::various -e 'Xconfig::various::setup_kms()' +} + usage() { cat <<EOF Usage: $0 action [arguments] @@ -430,6 +434,9 @@ Known actions: As --check-loaded, and consider ambiguous cases (e.g. nvidia where we can't detect if the loaded driver has the correct version) as failure. + + --setup-boot-kms + Set or unset the 'nokmsboot' option as necessary. EOF } @@ -506,6 +513,9 @@ case "$1" in --check-speedboot) check_dkms_status && check_loaded ;; +--setup-boot-kms) + setup_boot_kms + ;; *) usage ;; |