summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perl-install/any.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/perl-install/any.pm b/perl-install/any.pm
index 596c16516..05424c9a5 100644
--- a/perl-install/any.pm
+++ b/perl-install/any.pm
@@ -734,6 +734,8 @@ sub acceptLicense {
},
[ { list => [ N_("Accept"), N_("Refuse") ], val => \$r, type => 'list', format => sub { translate($_[0]) } } ])
or do {
+ # when refusing license in finish-install:
+ exec("/sbin/reboot") if !$::isInstall;
if ($::globetrotter) {
run_program::run('killall', 'Xorg');
exec("/sbin/reboot");