gnu: Add vpnc-scripts.
[jackhill/guix/guix.git] / gnu / packages / patches / vpnc-script.patch
CommitLineData
49f24f41
AE
1This patch adapts the vpnc script to newer kernel versions, see
2 https://lkml.org/lkml/2011/3/24/645
3
4diff -u a/vpnc-script.in b/vpnc-script.in
5--- a/vpnc-script.in 2013-03-03 13:55:16.000000000 +0100
6+++ b/vpnc-script.in 2013-03-03 13:56:11.000000000 +0100
7@@ -116,7 +116,7 @@
8
9 if [ -n "$IPROUTE" ]; then
10 fix_ip_get_output () {
11- sed 's/cache//;s/metric \?[0-9]\+ [0-9]\+//g;s/hoplimit [0-9]\+//g'
12+ sed 's/cache//;s/metric \?[0-9]\+ [0-9]\+//g;s/hoplimit [0-9]\+//g;s/ipid 0x....//g'
13 }
14
15 set_vpngateway_route() {