summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorThomas Backlund <tmb@mageia.org>2015-01-08 20:26:51 +0159
committerThomas Backlund <tmb@mageia.org>2015-01-08 20:26:51 +0159
commit73c30d928f6b53b727f92455c66c7aa83405b910 (patch)
tree26cca5bbdc09833e55f5a9849458dae5a7540d3b /perl-install
parent0059751dca41261b48f695fdfe603b6c30a63b38 (diff)
downloaddrakx-73c30d928f6b53b727f92455c66c7aa83405b910.tar
drakx-73c30d928f6b53b727f92455c66c7aa83405b910.tar.gz
drakx-73c30d928f6b53b727f92455c66c7aa83405b910.tar.bz2
drakx-73c30d928f6b53b727f92455c66c7aa83405b910.tar.xz
drakx-73c30d928f6b53b727f92455c66c7aa83405b910.zip
add is_mgalive() and is_uefi() checks
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/common.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/perl-install/common.pm b/perl-install/common.pm
index c8ad7a2a6..b42ac8386 100644
--- a/perl-install/common.pm
+++ b/perl-install/common.pm
@@ -711,6 +711,12 @@ sub update_gnomekderc_no_create {
}
}
+# check if we are in mga live mode
+sub is_mgalive { -e "/run/mgalive" }
+
+# check if we are on an uefi system
+sub is_uefi { -e "/sys/firmware/efi" }
+
=item cmp_kernel_versions($va, $vb)
Compare two kernel versions