summaryrefslogtreecommitdiff
path: root/scripts/update-rcconf
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2015-07-24 01:40:28 -0500
committerWaldemar Brodkorb <wbx@openadk.org>2015-07-24 01:40:39 -0500
commit11e0c7f2e6d41e0fae878cddcca3d86719ea4a7e (patch)
treed999aee22290bb900d28d883db05ccb00e8f7a4d /scripts/update-rcconf
parent1c8cc6be770e61612af40aeeaa47cb474a93e712 (diff)
allow DAEMON mode to be used when m selected
Diffstat (limited to 'scripts/update-rcconf')
-rwxr-xr-xscripts/update-rcconf9
1 files changed, 7 insertions, 2 deletions
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