summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--adk/tools/pkgmaker.c2
-rwxr-xr-xscripts/update-rcconf9
-rw-r--r--target/appliances/kodi.appliance2
3 files changed, 9 insertions, 4 deletions
diff --git a/adk/tools/pkgmaker.c b/adk/tools/pkgmaker.c
index 892edbd39..cde0f178d 100644
--- a/adk/tools/pkgmaker.c
+++ b/adk/tools/pkgmaker.c
@@ -474,7 +474,7 @@ int main() {
else
fprintf(icfg, "config ADK_RUNTIME_START_%s\n", toupperstr(sname));
fprintf(icfg, "\tprompt \"Start %s on boot\"\n", sname2);
- fprintf(icfg, "\tboolean\n");
+ fprintf(icfg, "\ttristate\n");
if (strncmp("busybox", sname, 7) == 0)
fprintf(icfg, "\tdepends on BUSYBOX_%s\n", toupperstr(sname2));
else
diff --git a/scripts/update-rcconf b/scripts/update-rcconf
index 058430e38..0f1dd1315 100755
--- a/scripts/update-rcconf
+++ b/scripts/update-rcconf
@@ -24,7 +24,8 @@ fi
for service in $(grep ^ADK_RUNTIME_START_ $topdir/.config |grep -v ADK_RUNTIME_START_SERVICES);do
rcname=$(echo $service|sed -e "s#ADK_RUNTIME_START_##")
- rcname=$(echo $rcname| sed -e "s#=y##")
+ mode=$(echo $rcname|cut -d \= -f 2)
+ rcname=$(echo $rcname| sed -e "s#=.*##")
rcname=$(echo $rcname| sed -e "s#^BUSYBOX_##")
rcname=$(echo $rcname| tr '[:upper:]' '[:lower:]')
# workarounds where package name not equal to service name
@@ -37,5 +38,9 @@ for service in $(grep ^ADK_RUNTIME_START_ $topdir/.config |grep -v ADK_RUNTIME_S
if [ $rcname = "openssh_server" ];then
rcname=openssh
fi
- sed -i -e "s#$rcname=\"NO\"#$rcname=\"YES\"#" $rcconf
+ if [ $mode = "m" ]; then
+ sed -i -e "s#$rcname=\"NO\"#$rcname=\"DAEMON\"#" $rcconf
+ else
+ sed -i -e "s#$rcname=\"NO\"#$rcname=\"YES\"#" $rcconf
+ fi
done
diff --git a/target/appliances/kodi.appliance b/target/appliances/kodi.appliance
index db3c3acc8..04f9e749c 100644
--- a/target/appliances/kodi.appliance
+++ b/target/appliances/kodi.appliance
@@ -20,7 +20,7 @@ config ADK_APPLIANCE_KODI
select ADK_RUNTIME_START_BUSYBOX_NTPD
select ADK_RUNTIME_START_BUSYBOX_SYSLOGD
select ADK_RUNTIME_START_BUSYBOX_WATCHDOG
- select ADK_RUNTIME_START_KODI
+ select ADK_RUNTIME_START_KODI m
select ADK_KERNEL_INPUT_EVDEV m
select ADK_KERNEL_USB_HID m
select ADK_TARGET_USB_KEYBOARD