Package: vpnc
Version: 0.3.3+SVN20051028-3
Severity: wishlist
Tags: patch
Hello,
please add hooks to vpnc-script that are called after interface
configuration in the connect method and maybe interface deconfiguration
in the disconnect method.
The existing hooks are useless if you want to set up extra routes.
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-1-k7
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Versions of packages vpnc depends on:
ii iproute 20051007-4 Professional tools to control the
ii libc6 2.3.6-7 GNU C Library: Shared libraries
ii libgcrypt11 1.2.2-1 LGPL Crypto library - runtime libr
ii libgpg-error0 1.2-1 library for common error values an
vpnc recommends no packages.
-- no debconf information
--- /home/jkloos/vpnc-0.3.3+SVN20051028/vpnc-script 2006-05-05
22:19:23.000000000 +0200
+++ vpnc-script 2006-05-04 15:04:56.000000000 +0200
@@ -312,6 +312,9 @@
if [ -n "$INTERNAL_IP4_DNS" ]; then
write_resolvconf
fi
+ if [ -r /etc/vpnc/vpnc-script-post-connect-action ] ; then
+ . /etc/vpnc/vpnc-script-post-connect-action
+ fi
}
do_disconnect() {
@@ -344,6 +347,9 @@
if [ -n "$INTERNAL_IP4_DNS" ]; then
reset_resolvconf
fi
+ if [ -r /etc/vpnc/vpnc-script-post-disconnect-action ] ; then
+ . /etc/vpnc/vpnc-script-post-disconnect-action
+ fi
}
####