mtree: skip all major-0 devices, not just (0,1)
This commit is contained in:
parent
cc64313b80
commit
6811647e20
1 changed files with 2 additions and 2 deletions
|
@ -16,8 +16,8 @@ do
|
|||
dir="`echo $line | awk '{ print $4 }'`"
|
||||
mkdir -p $dir
|
||||
targetdev="`stat -f %d $dir/.`"
|
||||
if [ $targetdev -eq 1 ]
|
||||
then echo "skipping $dir properties"
|
||||
if [ $targetdev -lt 256 ]
|
||||
then echo "skipping non-dev $dir properties"
|
||||
else chown $owner $dir
|
||||
chmod $mode $dir
|
||||
chgrp $group $dir
|
||||
|
|
Loading…
Reference in a new issue