add chown support to device-table.pl - already does chmod

git-svn-id: http://emdebian.org/svn/current@7215 563faec7-e20c-0410-992a-a66f704d0ccd
This commit is contained in:
codehelp 2010-05-15 20:01:39 +00:00
parent ec949dad42
commit 2af77cec9d

View file

@ -89,12 +89,14 @@ foreach $line (@list)
if ($cmd[9] =~ /-/) if ($cmd[9] =~ /-/)
{ {
push @seq, "mknod -m $cmd[2] $cmd[0] $cmd[1] $cmd[5] $cmd[6]"; push @seq, "mknod -m $cmd[2] $cmd[0] $cmd[1] $cmd[5] $cmd[6]";
push @seq, "chown $cmd[3]:$cmd[4] $cmd[0]";
} }
else else
{ {
for ($i = 0; $i < $cmd[9]; $i += $cmd[8]) for ($i = 0; $i < $cmd[9]; $i += $cmd[8])
{ {
push @seq, "mknod -m $cmd[2] $cmd[0]$i $cmd[1] $cmd[5] $cmd[6]"; push @seq, "mknod -m $cmd[2] $cmd[0]$i $cmd[1] $cmd[5] $i";
push @seq, "chown $cmd[3]:$cmd[4] $cmd[0]$i";
} }
} }
} }