]> Zhao Yanbai Git Server - minix.git/commitdiff
mtree: skip all major-0 devices, not just (0,1)
authorBen Gras <ben@minix3.org>
Thu, 18 Aug 2011 13:05:27 +0000 (13:05 +0000)
committerBen Gras <ben@minix3.org>
Thu, 18 Aug 2011 13:05:27 +0000 (13:05 +0000)
etc/mtree.sh

index 706306e7a44de08d6d9e75b228e6b8f8658e74e3..36e6767c84a39fcdaaa71e6ff11134bf02e43cdd 100755 (executable)
@@ -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