summaryrefslogtreecommitdiff
path: root/net-analyzer/mrtg/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-01-10 05:25:01 +0000
committerV3n3RiX <venerix@redcorelinux.org>2018-01-10 05:25:01 +0000
commit456dbeaab3e2f71f527eae542ab44d1e372b0655 (patch)
tree5cee708ec6e4b4e530a4337e7389598dc7cd6144 /net-analyzer/mrtg/files
parent65737cf14a7220bd9a487aa2af4ae0e79bd23e86 (diff)
gentoo resync : 10.01.2018
Diffstat (limited to 'net-analyzer/mrtg/files')
-rw-r--r--net-analyzer/mrtg/files/mrtg.rc12
1 files changed, 6 insertions, 6 deletions
diff --git a/net-analyzer/mrtg/files/mrtg.rc b/net-analyzer/mrtg/files/mrtg.rc
index d1ee6861cd45..0ff5d0783f38 100644
--- a/net-analyzer/mrtg/files/mrtg.rc
+++ b/net-analyzer/mrtg/files/mrtg.rc
@@ -1,5 +1,5 @@
#!/sbin/openrc-run
-# Copyright 1999-2005 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
depend() {
@@ -10,7 +10,7 @@ depend() {
}
checkconfig() {
- if [[ ! -f ${MRTG_CONF} ]] ; then
+ if [ ! -f ${MRTG_CONF} ] ; then
eerror "Please create ${MRTG_CONF} (try man cfgmaker)"
return 1
fi
@@ -22,21 +22,21 @@ checkconfig() {
start() {
# mrtg will not run if LANG=*utf8
# use grep instead of bash regexp for bug #159786
- [[ "$(echo $LANG|grep -E '((^[A-Za-z0-9\_\@\-]+\.)|(^))([uU][tT][fF]-?8)$')" ]] \
+ [ "$(echo $LANG|grep -E '((^[A-Za-z0-9\_\@\-]+\.)|(^))([uU][tT][fF]-?8)$')" ] \
&& LANG='C'
checkconfig || return $?
# enable logging?
- [[ -n "${MRTG_LOG}" ]] && \
+ [ -n "${MRTG_LOG}" ] && \
MRTG_OPTS="${MRTG_OPTS} --logging ${MRTG_LOG}"
# run as a different user?
- [[ -n "${MRTG_USER}" ]] && \
+ [ -n "${MRTG_USER}" ] && \
MRTG_OPTS="${MRTG_OPTS} --user ${MRTG_USER}"
# run as a different group?
- [[ -n "${MRTG_GROUP}" ]] && \
+ [ -n "${MRTG_GROUP}" ] && \
MRTG_OPTS="${MRTG_OPTS} --group ${MRTG_GROUP}"
ebegin "Starting mrtg"