# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/sys-kernel/mips-sources/files/eblits/pkg_postinst-v1.eblit,v 1.1 2009/03/16 06:39:10 kumba Exp $ # Eblit that handles binpkg postinst tasks. # In this case, it sets up the /usr/src/linux symlink. eblit-mips-sources-pkg_postinst() { # Symlink /usr/src/linux as appropriate local my_ksrc="${S##*/}" for x in {ip27,ip28,ip30,cobalt}; do use ${x} && my_ksrc="${my_ksrc}.${x}" done if [ ! -e "${ROOT}usr/src/linux" ]; then rm -f "${ROOT}usr/src/linux" ln -sf "${my_ksrc}" "${ROOT}/usr/src/linux" fi }