diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2014-06-29 12:46:29 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2014-06-29 12:46:29 +0200 |
commit | edb9c6099142330dba01e070aaf3da90c7fe016e (patch) | |
tree | fde0233b0de42c5efa4604b59b77d53016327eb2 /scripts | |
parent | 1a3c5afadcc5edb31afb592fb884d551f8268c54 (diff) |
fix syntax error
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/update-rcconf | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/update-rcconf b/scripts/update-rcconf index bc896d3d1..046f4b582 100755 --- a/scripts/update-rcconf +++ b/scripts/update-rcconf @@ -7,12 +7,16 @@ topdir=$(readlink -nf $(dirname $0)/.. 2>/dev/null || (cd $(dirname $0)/..; pwd rcconf=$topdir/root_${ADK_TARGET_SYSTEM}_${ADK_TARGET_LIBC}/etc/rc.conf +if [ ! -f $topdir/root_${ADK_TARGET_SYSTEM}_${ADK_TARGET_LIBC}/etc/rc.conf ];then + exit 0 +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##") rcname=$(echo $rcname| sed -e "s#^BUSYBOX_##") rcname=$(echo $rcname| tr '[:upper:]' '[:lower:]') - if [ $ADK_PKG_XBMCBOX = "y" ];then + if [ "$ADK_PKG_XBMCBOX" = "y" ];then sed -i -e "s#$rcname=\"NO\"#$rcname=\"DAEMON\"#" $rcconf else sed -i -e "s#$rcname=\"NO\"#$rcname=\"YES\"#" $rcconf |