aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian C. (anrxc) <anrxc@sysphere.org>2013-06-30 15:48:57 (GMT)
committerAdrian C. (anrxc) <anrxc@sysphere.org>2013-06-30 15:48:57 (GMT)
commit6b67e056fbe3c0c9cfec63a97db56ed2f5a614d4 (patch)
tree46e4983666ad2ce9de56ff69484291a87134230c
parent4f1bd70210b0bd13aef6418254eb7e3eb0788d25 (diff)
downloadrcdscripts-6b67e056fbe3c0c9cfec63a97db56ed2f5a614d4.tar.xz
rcdscripts: openvpn /usr/sbin deprecation
-rwxr-xr-xsrc/openvpn/openvpn-tapdev.rc4
-rwxr-xr-xsrc/openvpn/openvpn.rc2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/openvpn/openvpn-tapdev.rc b/src/openvpn/openvpn-tapdev.rc
index 2c51f82..20cb5d1 100755
--- a/src/openvpn/openvpn-tapdev.rc
+++ b/src/openvpn/openvpn-tapdev.rc
@@ -11,7 +11,7 @@ case "$1" in
success=0
for tapdev in ${TAPDEVS}; do
stat_append "${tapdev} "
- /usr/sbin/openvpn --mktun --dev-type tap --dev ${tapdev} >/dev/null 2>&1 || success=$?
+ /usr/bin/openvpn --mktun --dev-type tap --dev ${tapdev} >/dev/null 2>&1 || success=$?
done
if [ $success -eq 0 ]; then
add_daemon openvpn-tapdev
@@ -24,7 +24,7 @@ case "$1" in
stat_busy "Destroying tap devices for OpenVPN ..."
for tapdev in ${TAPDEVS}; do
stat_append "${tapdev} "
- /usr/sbin/openvpn --rmtun --dev-type tap --dev ${tapdev} >/dev/null 2>&1 || success=$?
+ /usr/bin/openvpn --rmtun --dev-type tap --dev ${tapdev} >/dev/null 2>&1 || success=$?
done
rm_daemon openvpn-tapdev
stat_done
diff --git a/src/openvpn/openvpn.rc b/src/openvpn/openvpn.rc
index 96c28b6..50a034d 100755
--- a/src/openvpn/openvpn.rc
+++ b/src/openvpn/openvpn.rc
@@ -13,7 +13,7 @@ case "$1" in
mkdir -p "${STATEDIR}"
for cfg in "${CFGDIR}"/*.conf; do
stat_append "$(basename "${cfg}" .conf) "
- /usr/sbin/openvpn --daemon --writepid "${STATEDIR}"/"$(basename "${cfg}" .conf)".pid --cd "${CFGDIR}" --config "${cfg}" || success=$?
+ /usr/bin/openvpn --daemon --writepid "${STATEDIR}"/"$(basename "${cfg}" .conf)".pid --cd "${CFGDIR}" --config "${cfg}" || success=$?
done
if [ $success -eq 0 ]; then
add_daemon openvpn