summaryrefslogtreecommitdiff
path: root/support
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2012-11-07 00:22:33 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2012-11-07 00:22:33 +0000
commit1b0130961ebc308bba4c9ced3988558bfac103d9 (patch)
tree40dcef0a3f194d4741a8ae3ea9c12015e0bc89df /support
parent3809eac54d575d52d8793df38f826f1d7d7398fb (diff)
downloadopenrc-1b0130961ebc308bba4c9ced3988558bfac103d9.tar.gz
openrc-1b0130961ebc308bba4c9ced3988558bfac103d9.tar.bz2
openrc-1b0130961ebc308bba4c9ced3988558bfac103d9.tar.xz
checkbashisms: clean up export statements.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Diffstat (limited to 'support')
-rwxr-xr-xsupport/openvpn/down.sh3
-rwxr-xr-xsupport/openvpn/up.sh3
2 files changed, 4 insertions, 2 deletions
diff --git a/support/openvpn/down.sh b/support/openvpn/down.sh
index 4e74937..93dd53c 100755
--- a/support/openvpn/down.sh
+++ b/support/openvpn/down.sh
@@ -18,7 +18,8 @@ fi
# Re-enter the init script to stop any dependant services
if [ -x "${RC_SERVICE}" ]; then
if "${RC_SERVICE}" --quiet status; then
- export IN_BACKGROUND=YES
+ IN_BACKGROUND=YES
+ export IN_BACKGROUND
"${RC_SERVICE}" --quiet stop
fi
fi
diff --git a/support/openvpn/up.sh b/support/openvpn/up.sh
index c52ea04..f207dce 100755
--- a/support/openvpn/up.sh
+++ b/support/openvpn/up.sh
@@ -64,7 +64,8 @@ fi
# Re-enter the init script to start any dependant services
if [ -x "${RC_SERVICE}" ]; then
if ! "${RC_SERVICE}" --quiet status; then
- export IN_BACKGROUND=true
+ IN_BACKGROUND=YES
+ export IN_BACKGROUND
"${RC_SERVICE}" --quiet start
fi
fi