summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-06-29 12:46:29 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2014-06-29 12:46:29 +0200
commitedb9c6099142330dba01e070aaf3da90c7fe016e (patch)
treefde0233b0de42c5efa4604b59b77d53016327eb2 /scripts
parent1a3c5afadcc5edb31afb592fb884d551f8268c54 (diff)
fix syntax error
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/update-rcconf6
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