diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2005-10-03 07:44:03 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2005-10-03 07:44:03 +0000 |
commit | d828f58467cea2371f827291ecc36aa87bc30ffd (patch) | |
tree | 70c208004813a48981a5a4773dea265580711ea8 /perl-install | |
parent | 429db87104b8c74ea730fcce7734b6df33325cea (diff) | |
download | drakx-d828f58467cea2371f827291ecc36aa87bc30ffd.tar drakx-d828f58467cea2371f827291ecc36aa87bc30ffd.tar.gz drakx-d828f58467cea2371f827291ecc36aa87bc30ffd.tar.bz2 drakx-d828f58467cea2371f827291ecc36aa87bc30ffd.tar.xz drakx-d828f58467cea2371f827291ecc36aa87bc30ffd.zip |
allow using an updated dmraid
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/patch/patch-2006-new-dmraid.pl | 12 |
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"; +} |