/[gentoo-x86]/net-misc/openvpn/files/down.sh
Gentoo

Contents of /net-misc/openvpn/files/down.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download) (as text)
Tue May 9 09:21:41 2006 UTC (12 years ago) by uberlord
Branch: MAIN
File MIME type: text/x-sh
  New upstream beta release with smartcard support (#118435).
  We now add an openvpn user/group so you can drop root if you wish (#120425).

  If you use the remote keyword in your config then you are deemed to be a
  client and we force our up/down scripts to be used. These scripts start/stop
  any services depending on openvpn AND apply any DNS information to resolvconf
  or /etc/resolv.conf directly if resolvconf is not installed.
(Portage version: 2.1_pre10-r5)

1 uberlord 1.1 #!/bin/sh
2     # Copyright (c) 2006 Gentoo Foundation
3     # Distributed under the terms of the GNU General Public License v2
4     # Contributed by Roy Marples (uberlord@gentoo.org)
5    
6     # If we have a service specific script, run this now
7     if [[ -x /etc/openvpn/"${SVCNAME}"-down.sh ]] ; then
8     ( /etc/openvpn/"${SVCNAME}"-down.sh )
9     fi
10    
11     # Setup our resolv.conf
12     [[ -x /sbin/resolvconf ]] && /sbin/resolvconf -d "${dev}"
13    
14     # Re-enter the init script to start any dependant services
15     if /etc/init.d/"${SVCNAME}" --quiet status ; then
16     export IN_BACKGROUND=true
17     /etc/init.d/"${SVCNAME}" --quiet stop
18     fi
19    
20     exit 0
21    
22     # vim: ts=4 :

  ViewVC Help
Powered by ViewVC 1.1.20