summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2000-12-04 17:38:37 +0000
committerFrancois Pons <fpons@mandriva.com>2000-12-04 17:38:37 +0000
commit16bc60199ce6737b90adacc457463cf877062ac3 (patch)
tree2f5755a046a85d7bfb78da81a0ae1b8a864ee864
parentb6b2e18737cc05215e7b62533ccfb98bf7836203 (diff)
downloaddrakx-16bc60199ce6737b90adacc457463cf877062ac3.tar
drakx-16bc60199ce6737b90adacc457463cf877062ac3.tar.gz
drakx-16bc60199ce6737b90adacc457463cf877062ac3.tar.bz2
drakx-16bc60199ce6737b90adacc457463cf877062ac3.tar.xz
drakx-16bc60199ce6737b90adacc457463cf877062ac3.zip
added function isCdNotEjectable.
-rw-r--r--perl-install/common.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/perl-install/common.pm b/perl-install/common.pm
index 2b85f8032..150f33080 100644
--- a/perl-install/common.pm
+++ b/perl-install/common.pm
@@ -9,7 +9,7 @@ use vars qw(@ISA %EXPORT_TAGS @EXPORT_OK $printable_chars $sizeof_int $bitof_int
common => [ qw(__ even odd arch better_arch compat_arch min max sqr sum and_ or_ sign product bool invbool listlength bool2text bool2yesno text2bool to_int to_float ikeys member divide is_empty_array_ref is_empty_hash_ref add2hash add2hash_ set_new set_add round round_up round_down first second top uniq translate untranslate warp_text formatAlaTeX formatLines deref next_val_in_array) ],
functional => [ qw(fold_left compose mapgrep map_index grep_index find_index map_each grep_each list2kv map_tab_hash mapn mapn_ difference2 before_leaving catch_cdie cdie combine) ],
file => [ qw(dirname basename touch all glob_ cat_ cat__ output symlinkf chop_ mode typeFromMagic expand_symlinks) ],
- system => [ qw(sync makedev unmakedev psizeof strcpy gettimeofday syscall_ salt getVarsFromSh setVarsInSh setVarsInShMode setVarsInCsh substInFile availableMemory availableRamMB removeXiBSuffix template2file template2userfile update_userkderc list_skels formatTime formatTimeRaw unix2dos setVirtual) ],
+ system => [ qw(sync makedev unmakedev psizeof strcpy gettimeofday syscall_ salt getVarsFromSh setVarsInSh setVarsInShMode setVarsInCsh substInFile availableMemory availableRamMB removeXiBSuffix template2file template2userfile update_userkderc list_skels formatTime formatTimeRaw unix2dos setVirtual isCdNotEjectable) ],
constant => [ qw($printable_chars $sizeof_int $bitof_int $SECTORSIZE %compat_arch) ],
);
@EXPORT_OK = map { @$_ } values %EXPORT_TAGS;
@@ -635,6 +635,8 @@ sub next_val_in_array {
$l{$v};
}
+sub isCdNotEjectable { scalar(grep { /ram3/ } cat_("/proc/mounts")) == 0 }
+
#-######################################################################################
#- Wonderful perl :(