diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2015-10-08 15:03:25 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2015-10-08 15:03:25 +0200 |
commit | a23f2743d04f0d5037d21967848dfe7c069f1e2c (patch) | |
tree | 656e069d10432ca423c8f5d588c9d6ca2446a526 /scripts/update-rcconf | |
parent | 303ea190f97fa74e605ecc49d0ae99cafd054961 (diff) |
fix regex
Diffstat (limited to 'scripts/update-rcconf')
-rwxr-xr-x | scripts/update-rcconf | 4 |
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 |