follow symlinks when copying env

This commit is contained in:
termie 2011-09-28 17:09:00 -05:00
parent d5e1f7ba09
commit 1c7f0c9761

View file

@ -145,7 +145,7 @@ cp -pR /lib/modules/`uname -r`/kernel/net $ROOTFS/lib/modules/`uname -r`/kernel/
# Gracefully cp only if source file/dir exists
function cp_it {
if [ -e $1 ] || [ -d $1 ]; then
cp -pr $1 $2
cp -pRL $1 $2
fi
}