blob: 584897428e9bb821049533c348a3373f22fded43 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
# 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}; 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
}
|