From 2af77cec9dfc09dd57266f8042225c494678d73f Mon Sep 17 00:00:00 2001 From: codehelp Date: Sat, 15 May 2010 20:01:39 +0000 Subject: [PATCH] add chown support to device-table.pl - already does chmod git-svn-id: http://emdebian.org/svn/current@7215 563faec7-e20c-0410-992a-a66f704d0ccd --- device-table.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/device-table.pl b/device-table.pl index d21b476..0548fe2 100755 --- a/device-table.pl +++ b/device-table.pl @@ -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"; } } }