summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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";
+}