Lines 5-10
EAPI=8
Link Here
|
5 |
ALTERNATIVES=( |
5 |
ALTERNATIVES=( |
6 |
bash:app-shells/bash |
6 |
bash:app-shells/bash |
|
|
7 |
busybox:sys-apps/busybox |
7 |
dash:app-shells/dash |
8 |
dash:app-shells/dash |
8 |
ksh:app-shells/ksh |
9 |
ksh:app-shells/ksh |
9 |
"lksh:app-shells/mksh[lksh]" |
10 |
"lksh:app-shells/mksh[lksh]" |
Lines 20-25
RDEPEND="
Link Here
|
20 |
!!app-eselect/eselect-sh |
21 |
!!app-eselect/eselect-sh |
21 |
" |
22 |
" |
|
|
23 |
pkg_setup() { |
24 |
if [[ -z ${ROOT} ]] && use busybox ; then |
25 |
if busybox bbconfig | grep -q "CONFIG_FEATURE_SH_STANDALONE=y" ; then |
26 |
ewarn "busybox is configured with CONFIG_FEATURE_SH_STANDALONE=y!" |
27 |
ewarn "This is not a safe configuration for busybox as /bin/sh." |
28 |
ewarn "Please use savedconfig to disable CONFIG_FEATURE_SH_STANDALONE on busybox." |
29 |
die "Aborting due to unsafe Busybox configuration (CONFIG_FEATURE_SH_STANDALONE=y)!" |
30 |
fi |
31 |
fi |
32 |
} |
33 |
|
22 |
src_install() { |
34 |
src_install() { |
23 |
dosym "$(get_alternative)" /bin/sh || die |
35 |
dosym "$(get_alternative)" /bin/sh || die |
24 |
} |
36 |
} |