summaryrefslogtreecommitdiffstats
path: root/perl-install/devices.pm
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2010-03-01 16:27:34 +0000
committerOlivier Blin <oblin@mandriva.com>2010-03-01 16:27:34 +0000
commite79d5d68be9b80c8439abb240412a5cce4b952f8 (patch)
tree4d92bbeae4df582aa30ba27cd3cdd36fa03b54f7 /perl-install/devices.pm
parent59ba0b73feeab80986012f5e521249c2326ef849 (diff)
downloaddrakx-e79d5d68be9b80c8439abb240412a5cce4b952f8.tar
drakx-e79d5d68be9b80c8439abb240412a5cce4b952f8.tar.gz
drakx-e79d5d68be9b80c8439abb240412a5cce4b952f8.tar.bz2
drakx-e79d5d68be9b80c8439abb240412a5cce4b952f8.tar.xz
drakx-e79d5d68be9b80c8439abb240412a5cce4b952f8.zip
handle creation of mmcblk devices (useful on Efika MX)
Diffstat (limited to 'perl-install/devices.pm')
-rw-r--r--perl-install/devices.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/perl-install/devices.pm b/perl-install/devices.pm
index a50d70953..7904246ea 100644
--- a/perl-install/devices.pm
+++ b/perl-install/devices.pm
@@ -96,6 +96,11 @@ sub entry {
$type = c::S_IFBLK();
$major = 114;
$minor = 16 * $1 + ($2 || 0);
+ } elsif (m,(mmcblk)(\d+)(?:p(\d+))?,) {
+ # MMC/SD "mmcblk0{p1}"
+ $type = c::S_IFBLK();
+ $major = 179;
+ $minor = 8 * $1 + ($2 || 0);
} elsif (my ($prefix, $nb) = /(.*?)(\d+)$/) {
my $f = ${{"fd" => sub { c::S_IFBLK(), 2, 0 },
"hidbp-mse-" => sub { c::S_IFCHR(), 10, 32 },