From 126777bc019a54afb4ec51299f2cf9d2841698aa Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Wed, 25 Apr 2007 12:26:16 +0000 Subject: re-sync after the big svn loss --- rescue/devices.pl | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'rescue/devices.pl') 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 \n"; -if ($>) { $sudo = "sudo"; $ENV{PATH} = "/sbin:/usr/sbin:$ENV{PATH}"; } - foreach () { chomp; my ($typ, $maj, $min, @l) = split; @@ -15,7 +13,10 @@ foreach () { $_; } }; - 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"; + } } } -- cgit v1.2.1