diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2015-07-24 01:40:28 -0500 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2015-07-24 01:40:39 -0500 |
commit | 11e0c7f2e6d41e0fae878cddcca3d86719ea4a7e (patch) | |
tree | d999aee22290bb900d28d883db05ccb00e8f7a4d /scripts/update-rcconf | |
parent | 1c8cc6be770e61612af40aeeaa47cb474a93e712 (diff) |
allow DAEMON mode to be used when m selected
Diffstat (limited to 'scripts/update-rcconf')
-rwxr-xr-x | scripts/update-rcconf | 9 |
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 |