~ruther/guix-local

ref: c6ebb77cb7c3e845ddc8f4fc13d9dad7f5cd3a28 guix-local/gnu/packages/patches/vpnc-script.patch -rw-r--r-- 527 bytes
c6ebb77c — Andreas Enge gnu: imagemagick: Upgrade to 6.8.8-4. 12 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
This patch adapts the vpnc script to newer kernel versions, see
   https://lkml.org/lkml/2011/3/24/645

diff -u a/vpnc-script.in b/vpnc-script.in
--- a/vpnc-script.in	2013-03-03 13:55:16.000000000 +0100
+++ b/vpnc-script.in	2013-03-03 13:56:11.000000000 +0100
@@ -116,7 +116,7 @@
 
 if [ -n "$IPROUTE" ]; then
 	fix_ip_get_output () {
-		sed 's/cache//;s/metric \?[0-9]\+ [0-9]\+//g;s/hoplimit [0-9]\+//g'
+		sed 's/cache//;s/metric \?[0-9]\+ [0-9]\+//g;s/hoplimit [0-9]\+//g;s/ipid 0x....//g'
 	}
 
 	set_vpngateway_route() {