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:
parent
ec949dad42
commit
2af77cec9d
1 changed files with 3 additions and 1 deletions
|
@ -89,12 +89,14 @@ foreach $line (@list)
|
|||
if ($cmd[9] =~ /-/)
|
||||
{
|
||||
push @seq, "mknod -m $cmd[2] $cmd[0] $cmd[1] $cmd[5] $cmd[6]";
|
||||
push @seq, "chown $cmd[3]:$cmd[4] $cmd[0]";
|
||||
}
|
||||
else
|
||||
{
|
||||
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";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue