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.down | |
parent | d2e0d2c599f08f03f98ad0e59cdeb6a4f4ac294e (diff) |
main/openvpn: rename deprecated $SVCNAME to $RC_SVCNAME
Diffstat (limited to 'main/openvpn/openvpn.down')
-rw-r--r-- | main/openvpn/openvpn.down | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/main/openvpn/openvpn.down b/main/openvpn/openvpn.down index ad8910e8f3d..50d463f16c3 100644 --- a/main/openvpn/openvpn.down +++ b/main/openvpn/openvpn.down @@ -4,8 +4,8 @@ # Contributed by Roy Marples (uberlord@gentoo.org) # If we have a service specific script, run this now -if [ -x /etc/openvpn/"${SVCNAME}"-down.sh ] ; then - /etc/openvpn/"${SVCNAME}"-down.sh "$@" +if [ -x /etc/openvpn/"${RC_SVCNAME}"-down.sh ] ; then + /etc/openvpn/"${RC_SVCNAME}"-down.sh "$@" fi # Restore resolv.conf to how it was @@ -20,11 +20,11 @@ if [ "${PEER_DNS}" != "no" ]; then fi fi -if [ -n "${SVCNAME}" ]; then +if [ -n "${RC_SVCNAME}" ]; then # 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 stop + /etc/init.d/"${RC_SVCNAME}" --quiet stop fi fi |