summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2005-10-03 07:44:03 +0000
committerPascal Rigaux <pixel@mandriva.com>2005-10-03 07:44:03 +0000
commitd828f58467cea2371f827291ecc36aa87bc30ffd (patch)
tree70c208004813a48981a5a4773dea265580711ea8
parent429db87104b8c74ea730fcce7734b6df33325cea (diff)
downloaddrakx-d828f58467cea2371f827291ecc36aa87bc30ffd.tar
drakx-d828f58467cea2371f827291ecc36aa87bc30ffd.tar.gz
drakx-d828f58467cea2371f827291ecc36aa87bc30ffd.tar.bz2
drakx-d828f58467cea2371f827291ecc36aa87bc30ffd.tar.xz
drakx-d828f58467cea2371f827291ecc36aa87bc30ffd.zip
allow using an updated dmraid
-rw-r--r--perl-install/patch/patch-2006-new-dmraid.pl12
1 files changed, 12 insertions, 0 deletions
diff --git a/perl-install/patch/patch-2006-new-dmraid.pl b/perl-install/patch/patch-2006-new-dmraid.pl
new file mode 100644
index 000000000..02f4b13aa
--- /dev/null
+++ b/perl-install/patch/patch-2006-new-dmraid.pl
@@ -0,0 +1,12 @@
+use MDK::Common;
+
+log::l("PATCH: 2006-new-dmraid");
+
+if (-e '/mnt/dmraid') {
+ mkdir_p('/tmp/bin');
+ cp_af('/mnt/dmraid', '/tmp/bin');
+ $ENV{PATH} = "/tmp/bin:$ENV{PATH}";
+} else {
+ warn "ERROR: dmraid not available\n";
+ die "ERROR: dmraid not available\n";
+}