#! /bin/sh

export PATH='/bin:/usr/bin'

if [ -s /etc/shadowfiles ]; then
    (
    cd /etc
    sed -e "s/'/'\"'\"'/g" -e "s/^/rm -f '/" -e "s/\$/'/" shadowfiles | sh
    : >shadowfiles
    )
fi
for PKG_ROOT in /usr /usr/local; do
    if [ -d $PKG_ROOT/etc ]; then
	(
	cd $PKG_ROOT/etc
	find . -type f -print >>/etc/shadowfiles
	tar -cf - . | tar -C /etc -xf -
	)
    fi
done
