From: Ben Gras Date: Thu, 18 Aug 2011 13:05:27 +0000 (+0000) Subject: mtree: skip all major-0 devices, not just (0,1) X-Git-Tag: v3.2.0~349 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/Bv9ARM.ch09.html?a=commitdiff_plain;h=6811647e205fc1e9c24bf58e08124f3f24662e16;p=minix.git mtree: skip all major-0 devices, not just (0,1) --- diff --git a/etc/mtree.sh b/etc/mtree.sh index 706306e7a..36e6767c8 100755 --- a/etc/mtree.sh +++ b/etc/mtree.sh @@ -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