From fec3227faa8605b86db734aa4826fdf07e5d2eec Mon Sep 17 00:00:00 2001 From: Martin Whitaker Date: Sat, 6 May 2017 13:12:28 +0100 Subject: service_harddrake: require reboot if nokmsboot option changed (mga#20455). --- perl-install/standalone/service_harddrake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'perl-install') diff --git a/perl-install/standalone/service_harddrake b/perl-install/standalone/service_harddrake index 96502d22f..9ac2ebed4 100755 --- a/perl-install/standalone/service_harddrake +++ b/perl-install/standalone/service_harddrake @@ -140,9 +140,9 @@ sub switch_x_driver { substInFile { s!^(\s*Driver\s+)"$old_driver"!$1"$new_driver"!i } '/etc/X11/xorg.conf'; log::explanations("switch X.org driver from '$old_driver' to '$new_driver' ($reason)"); Xconfig::card::libgl_config_and_more({ Driver => $new_driver }); - Xconfig::various::setup_kms(); + my $kms_changed = Xconfig::various::setup_kms(); - after_x_driver_switch(); # returns 1 if reboot is needed + after_x_driver_switch() || $kms_changed; # returns 1 if reboot is needed } sub should_reconfigure_x_driver { -- cgit v1.2.1