summaryrefslogtreecommitdiffstats
path: root/perl-install/patch/patch-2006-new-dmraid.pl
blob: 02f4b13aadd7e9b15dce0f3a43fa48ecf8510dc8 (plain)
1
2
3
4
5
6
7
8
9
10
11
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";
}