summaryrefslogtreecommitdiff
path: root/scripts/update-rcconf
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2015-10-08 15:03:25 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2015-10-08 15:03:25 +0200
commita23f2743d04f0d5037d21967848dfe7c069f1e2c (patch)
tree656e069d10432ca423c8f5d588c9d6ca2446a526 /scripts/update-rcconf
parent303ea190f97fa74e605ecc49d0ae99cafd054961 (diff)
fix regex
Diffstat (limited to 'scripts/update-rcconf')
-rwxr-xr-xscripts/update-rcconf4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/update-rcconf b/scripts/update-rcconf
index 0f1dd1315..8791a8849 100755
--- a/scripts/update-rcconf
+++ b/scripts/update-rcconf
@@ -39,8 +39,8 @@ for service in $(grep ^ADK_RUNTIME_START_ $topdir/.config |grep -v ADK_RUNTIME_S
rcname=openssh
fi
if [ $mode = "m" ]; then
- sed -i -e "s#$rcname=\"NO\"#$rcname=\"DAEMON\"#" $rcconf
+ sed -i -e "s#^$rcname=\"NO\"#$rcname=\"DAEMON\"#" $rcconf
else
- sed -i -e "s#$rcname=\"NO\"#$rcname=\"YES\"#" $rcconf
+ sed -i -e "s#^$rcname=\"NO\"#$rcname=\"YES\"#" $rcconf
fi
done