. $SRCDIR/common.sh
ERROR=
+SRC=/etc
+COUNT=100
setup_opts $@
diff -u /etc/hosts $OSCMT/hosts || fail "$OSCMT/hosts different" 4
# ok, that hopefully worked, so let's do a little more
-FILES=`find /etc -type f`
-echo "copying files from /etc to $OSCMT/etc"
-tar cf - $FILES | tar xvf - -C $OSCMT || fail "copying /etc" 10
+FILES=`find $SRC -type f | head -100`
+echo "copying files from $SRC to $OSCMT$SRC"
+tar cf - $FILES | tar xvf - -C $OSCMT || fail "copying $SRC" 10
echo "comparing newly copied files"
for f in $FILES; do
echo "removing $OSCMT/hosts"
rm $OSCMT/hosts || fail "can't remove $OSCMT/hosts" 26
-echo "removing $OSCMT/etc"
-rm -r $OSCMT/etc || fail "can't remove $OSCMT/etc" 27
+echo "removing $OSCMT$SRC"
+rm -r $OSCMT$SRC || fail "can't remove $OSCMT$SRC" 27
sh llcleanup.sh $@