summaryrefslogtreecommitdiffstats
path: root/rescue/devices.pl
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-04-25 12:26:16 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-04-25 12:26:16 +0000
commit126777bc019a54afb4ec51299f2cf9d2841698aa (patch)
tree97f76e571902ead55ba138f1156a4b4f00b9b779 /rescue/devices.pl
parentf1f67448efc714873378dfeb8279fae68054a90a (diff)
downloaddrakx-126777bc019a54afb4ec51299f2cf9d2841698aa.tar
drakx-126777bc019a54afb4ec51299f2cf9d2841698aa.tar.gz
drakx-126777bc019a54afb4ec51299f2cf9d2841698aa.tar.bz2
drakx-126777bc019a54afb4ec51299f2cf9d2841698aa.tar.xz
drakx-126777bc019a54afb4ec51299f2cf9d2841698aa.zip
re-sync after the big svn loss
Diffstat (limited to 'rescue/devices.pl')
-rw-r--r--rescue/devices.pl7
1 files changed, 4 insertions, 3 deletions
diff --git a/rescue/devices.pl b/rescue/devices.pl
index 79308508a..0d4a8f77f 100644
--- a/rescue/devices.pl
+++ b/rescue/devices.pl
@@ -2,8 +2,6 @@
@ARGV == 1 && chdir $ARGV[0] or die "usage: devices.pl <dir>\n";
-if ($>) { $sudo = "sudo"; $ENV{PATH} = "/sbin:/usr/sbin:$ENV{PATH}"; }
-
foreach (<DATA>) {
chomp;
my ($typ, $maj, $min, @l) = split;
@@ -15,7 +13,10 @@ foreach (<DATA>) {
$_;
}
};
- system("$sudo mknod $_ $typ $maj " . $min++) foreach @l2;
+ foreach (@l2) {
+ my $cmd = "mknod-m600 $_ $typ $maj " . $min++;
+ system($cmd) == 0 or die "$cmd failed\n";
+ }
}
}