diff options
author | Chris Gianelloni <wolf31o2@gentoo.org> | 2006-10-11 13:51:41 +0000 |
---|---|---|
committer | Chris Gianelloni <wolf31o2@gentoo.org> | 2006-10-11 13:51:41 +0000 |
commit | 29505ee2be0fd5cc7da1a20050dda333862121bc (patch) | |
tree | d734073183fad65156038febcf8289c374c62e2b /targets/support/chroot-functions.sh | |
parent | Removing all copyright and license comment headers from all files so we don't... (diff) | |
download | catalyst-29505ee2be0fd5cc7da1a20050dda333862121bc.tar.gz catalyst-29505ee2be0fd5cc7da1a20050dda333862121bc.tar.bz2 catalyst-29505ee2be0fd5cc7da1a20050dda333862121bc.zip |
Added initial Gentoo/FreeBSD support. Patch from Diego Pettenò <flameeyes@gentoo.org> and attached to bug #150351.
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@1180 d1e1f19c-881f-0410-ab34-b69fee027534
Diffstat (limited to 'targets/support/chroot-functions.sh')
-rwxr-xr-x | targets/support/chroot-functions.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/targets/support/chroot-functions.sh b/targets/support/chroot-functions.sh index 63b72578..43ff0474 100755 --- a/targets/support/chroot-functions.sh +++ b/targets/support/chroot-functions.sh @@ -214,7 +214,11 @@ function copy_symlink() { [ ! -e ${clst_root_path}/${1} ] && \ cp -vfdp ${1} ${clst_root_path}/${1} - TARGET=`readlink -f ${1}` + if [[ -n $(type -p realpath) ]]; then + TARGET=`realpath ${1}` + else + TARGET=`readlink -f ${1}` + fi if [ -h ${TARGET} ] then copy_symlink ${TARGET} ${STACK} |