diff options
author | Thomas Backlund <tmb@mageia.org> | 2015-01-08 20:26:51 +0159 |
---|---|---|
committer | Thomas Backlund <tmb@mageia.org> | 2015-01-08 20:26:51 +0159 |
commit | 73c30d928f6b53b727f92455c66c7aa83405b910 (patch) | |
tree | 26cca5bbdc09833e55f5a9849458dae5a7540d3b /perl-install/common.pm | |
parent | 0059751dca41261b48f695fdfe603b6c30a63b38 (diff) | |
download | drakx-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/common.pm')
-rw-r--r-- | perl-install/common.pm | 6 |
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 |