/[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.2 - (show annotations) (download) (as text)
Thu May 11 13:57:06 2006 UTC (12 years, 1 month ago) by uberlord
Branch: MAIN
Changes since 1.1: +1 -1 lines
File MIME type: text/x-sh
Tweak the scripts to force bash and make dns handling in up.sh a little more robust
(Portage version: 2.1_pre10-r5)

1 #!/bin/bash
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