diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2018-05-06 19:43:59 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2018-05-06 21:30:15 +0200 |
commit | 39995d882d8edc530b3cfa2752fce19e74bbcfdf (patch) | |
tree | 64bdb8508cb0a1d78a3766335d35a1c78925c6ea /main/openvpn/openvpn.up | |
parent | d2e0d2c599f08f03f98ad0e59cdeb6a4f4ac294e (diff) | |
download | aports-39995d882d8edc530b3cfa2752fce19e74bbcfdf.tar.bz2 aports-39995d882d8edc530b3cfa2752fce19e74bbcfdf.tar.xz |
main/openvpn: rename deprecated $SVCNAME to $RC_SVCNAME
Diffstat (limited to 'main/openvpn/openvpn.up')
-rw-r--r-- | main/openvpn/openvpn.up | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/main/openvpn/openvpn.up b/main/openvpn/openvpn.up index 4a8868702d..2923bef7ac 100644 --- a/main/openvpn/openvpn.up +++ b/main/openvpn/openvpn.up @@ -61,19 +61,19 @@ if [ "${PEER_DNS}" != "no" ]; then fi # Below section is Gentoo specific -# Quick summary - our init scripts are re-entrant and set the SVCNAME env var +# Quick summary - our init scripts are re-entrant and set the RC_SVCNAME env var # as we could have >1 openvpn service -if [ -n "${SVCNAME}" ]; then +if [ -n "${RC_SVCNAME}" ]; then # If we have a service specific script, run this now - if [ -x /etc/openvpn/"${SVCNAME}"-up.sh ] ; then - /etc/openvpn/"${SVCNAME}"-up.sh "$@" + if [ -x /etc/openvpn/"${RC_SVCNAME}"-up.sh ] ; then + /etc/openvpn/"${RC_SVCNAME}"-up.sh "$@" fi # Re-enter the init script to start any dependant services - if ! /etc/init.d/"${SVCNAME}" --quiet status ; then + if ! /etc/init.d/"${RC_SVCNAME}" --quiet status ; then export IN_BACKGROUND=true - /etc/init.d/${SVCNAME} --quiet start + /etc/init.d/${RC_SVCNAME} --quiet start fi fi |