diff options
author | nox <nox@FreeBSD.org> | 2007-03-05 03:12:37 +0800 |
---|---|---|
committer | nox <nox@FreeBSD.org> | 2007-03-05 03:12:37 +0800 |
commit | 7d2c283509dfe322de1ac1a44d83419730b70168 (patch) | |
tree | 80148ed52a86f146260b4d8d86df3663fea497a5 /security/openvpn/files | |
parent | 244821875c6c16bb02750d48e9fdd9e48edbf5cb (diff) | |
download | freebsd-ports-gnome-7d2c283509dfe322de1ac1a44d83419730b70168.tar.gz freebsd-ports-gnome-7d2c283509dfe322de1ac1a44d83419730b70168.tar.zst freebsd-ports-gnome-7d2c283509dfe322de1ac1a44d83419730b70168.zip |
rcfile:
- fix for FreeBSD releases before rcorder integration
- update copyright notice
- replace shell backticks by $().
Port:
- bump revision
- reformat comment
PR: ports/109856
Submitted by: Matthias Andree <matthias.andree@gmx.de> (maintainer)
Approved by: miwi (mentor)
Diffstat (limited to 'security/openvpn/files')
-rw-r--r-- | security/openvpn/files/openvpn.sh.in | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/security/openvpn/files/openvpn.sh.in b/security/openvpn/files/openvpn.sh.in index 54b710c47626..569dfb5d802f 100644 --- a/security/openvpn/files/openvpn.sh.in +++ b/security/openvpn/files/openvpn.sh.in @@ -2,10 +2,10 @@ # # openvpn.sh - load tun/tap driver and start OpenVPN daemon # -# (C) Copyright 2005 by Matthias Andree +# (C) Copyright 2005 - 2007 by Matthias Andree # based on suggestions by Matthias Grimm and Dirk Gouders -# -# Made in Northrhine-Westphalia, Germany +# with multi-instance contribution from Denis Shaposhnikov, Gleb Kozyrev +# and Vasil Dimov # # $FreeBSD$ # @@ -64,17 +64,17 @@ . %%RC_SUBR%% case "$0" in - /etc/rc*) +/etc/rc*) # during boot (shutdown) $0 is /etc/rc (/etc/rc.shutdown), # so get the name of the script from $_file - name=$(basename "$_file") + name=$(basename "$_file" .sh) ;; - *) - name=$(basename "$0") +*) + name=$(basename "$0" .sh) ;; esac -rcvar=`set_rcvar` +rcvar=$(set_rcvar) prefix="%%PREFIX%%" @@ -122,9 +122,9 @@ eval ": \${${name}_if:=\"\"}" eval ": \${${name}_configfile:=\"${prefix}/etc/openvpn/${name}.conf\"}" eval ": \${${name}_dir:=\"${prefix}/etc/openvpn\"}" -configfile="`eval echo \\${${name}_configfile}`" -dir="`eval echo \\${${name}_dir}`" -interfaces="`eval echo \\${${name}_if}`" +configfile="$(eval echo \${${name}_configfile})" +dir="$(eval echo \${${name}_dir})" +interfaces="$(eval echo \${${name}_if})" required_files=${configfile} command_args="--cd ${dir} --daemon --config ${configfile} --writepid ${pidfile}" |