mtree: skip all major-0 devices, not just (0,1)

This commit is contained in:
Ben Gras 2011-08-18 13:05:27 +00:00
parent cc64313b80
commit 6811647e20

View file

@ -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