diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2014-05-04 10:36:41 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2014-05-04 10:36:41 +0200 |
commit | 2d7666cde27141b6fd3d4f9d156253324fd56633 (patch) | |
tree | bbbb6d7b237b7b8dd3416c13f045cb766fadc5bb /package/base-files | |
parent | b02bbc72e9d77922bcbae48fd682aaac66122c44 (diff) |
simplify add_rcconf
Diffstat (limited to 'package/base-files')
-rw-r--r-- | package/base-files/src/etc/functions.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/package/base-files/src/etc/functions.sh b/package/base-files/src/etc/functions.sh index 5d76f4843..09824d4db 100644 --- a/package/base-files/src/etc/functions.sh +++ b/package/base-files/src/etc/functions.sh @@ -53,9 +53,9 @@ add_service() { } add_rcconf() { - rcconf_exists ${2-$1} || { - echo "adding service ${2-$1} to /etc/rc.conf" - printf '%s="%s"\t\t# %s\n' "${2:-$1}" "${3:-NO}" "$1" \ + rcconf_exists $1 || { + echo "adding service $1 to /etc/rc.conf" + printf '%s="%s"\n' "${1}" "${2:-NO}" \ >>$IPKG_INSTROOT/etc/rc.conf } } |