2 # This file is part of the OpenADK project. OpenADK is copyrighted
3 # material, please see the LICENCE file in the top-level directory.
5 topdir
=$
(readlink
-nf $
(dirname $0)/..
2>/dev
/null ||
(cd $
(dirname $0)/..
; pwd -P))
8 suffix
=${ADK_TARGET_SYSTEM}_${ADK_TARGET_LIBC}_${ADK_TARGET_CPU_ARCH}
9 if [ ! -z ${ADK_TARGET_FLOAT} ];then
10 suffix
=${suffix}_
${ADK_TARGET_FLOAT}
12 if [ ! -z ${ADK_TARGET_ABI} ];then
13 suffix
=${suffix}_
${ADK_TARGET_ABI}
15 if [ -z ${ADK_TARGET_WITH_MMU} ];then
16 suffix
=${suffix}_nommu
19 rcconf
=$
(ls $topdir/root_
${suffix}/etc
/rc.conf
)
21 if [ ! -f $rcconf ];then
25 for service
in $
(grep ^ADK_RUNTIME_START_
$topdir/.config |
grep -v ADK_RUNTIME_START_SERVICES
);do
26 rcname
=$
(echo $service|
sed -e "s#ADK_RUNTIME_START_##")
27 rcname
=$
(echo $rcname|
sed -e "s#=y##")
28 rcname
=$
(echo $rcname|
sed -e "s#^BUSYBOX_##")
29 rcname
=$
(echo $rcname|
tr '[:upper:]' '[:lower:]')
30 # workarounds where package name not equal to service name
31 if [ $rcname = "alsa_utils" ];then
34 if [ $rcname = "iptables" ];then
37 if [ $rcname = "openssh_server" ];then
40 sed -i -e "s#$rcname=\"NO\"#$rcname=\"YES\"#" $rcconf