Bug 139454 - net-misc/openvpn: allow period in config name
Bug#: 139454 Product:  Gentoo Linux Version: 2006.0 Platform: All
OS/Version: Linux Status: RESOLVED Severity: minor Priority: P2
Resolution: FIXED Assigned To: uberlord@gentoo.org Reported By: ed@catmur.co.uk
Component: Applications
URL: 
Summary: net-misc/openvpn: allow period in config name
Keywords:  
Status Whiteboard: 
Opened: 2006-07-06 10:28 0000
Description:   Opened: 2006-07-06 10:28 0000
/etc/init.d/openvpn has:

VPNDIR="/etc/openvpn"
VPN="${SVCNAME##*.}"
if [[ -n ${VPN} && ${SVCNAME} != "openvpn" ]]; then
        VPNPID="/var/run/openvpn.${VPN}.pid"
else
        VPNPID="/var/run/openvpn.pid"
fi
VPNCONF="${VPNDIR}/${VPN}.conf"

This prevents using period '.' in openvpn config names; VPN="${SVCNAME##*.}"
strips everything up to the last period. This could be changed to
VPN="${SVCNAME#*.}" to just strip the initial "openvpn.".

------- Comment #1 From Roy Marples (RETIRED) 2006-07-06 11:48:05 0000 -------
Fixed - sync up to get the new script. No rev bump.

Thanks