Package: vpnc
Version: 0.5.1r334-1
Severity: wishlist
Tags: patch

It would be nice if you could call a user-defined script automatically from
vpnc-script. Since I didn't see such a possibility in docs  and the script
itself, I added a check+execution of a "vpnc-script.local" file.

The patch is not perfect, it's just to show what I mean in code.

Background info: I needed apply some iptables ruleset changes on connect/
disconnect. Would be nice to have the typical "local" config files for this
kind of job, to not be affected by updates etc.


--- vpnc-script.orig    2010-07-16 06:51:32.000000000 +0200
+++ vpnc-script 2010-07-16 06:52:14.000000000 +0200
@@ -564,4 +564,6 @@
                ;;
 esac
 
+[ -x /etc/vpnc/vpnc-script.local ] && /etc/vpnc/vpnc-script.local "$@"
+
 exit 0




-- System Information:
Debian Release: 5.0.5
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages vpnc depends on:
ii  libc6                       2.7-18lenny4 GNU C Library: Shared libraries
ii  libgcrypt11                 1.4.1-1      LGPL Crypto library - runtime libr

Versions of packages vpnc recommends:
ii  iproute                       20080725-2 networking and traffic control too
ii  resolvconf                    1.42       name server information handler

vpnc suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to