aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2007-04-16 10:06:46 +0000
committerFlorian Fainelli <florian@openwrt.org>2007-04-16 10:06:46 +0000
commit7a86ac02ae43f232121dee559d2b242b52fb19e7 (patch)
tree38c29d4f5540710d2bcf8e23e3337019d93e8953
parent04141c0ad3cbdd05a3c1e07faafc8e7b08f45b1f (diff)
downloadupstream-7a86ac02ae43f232121dee559d2b242b52fb19e7.tar.gz
upstream-7a86ac02ae43f232121dee559d2b242b52fb19e7.tar.bz2
upstream-7a86ac02ae43f232121dee559d2b242b52fb19e7.zip
Fix startklips with bb's ifconfig (#1556)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6965 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--package/openswan/patches/110-scripts.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/package/openswan/patches/110-scripts.patch b/package/openswan/patches/110-scripts.patch
index 44381241a5..ed37920a39 100644
--- a/package/openswan/patches/110-scripts.patch
+++ b/package/openswan/patches/110-scripts.patch
@@ -227,3 +227,15 @@ diff -ruN openswan-2.4.7-old/programs/_startklips/_startklips.in openswan-2.4.7-
if test ! -f $ipsecversion
then
echo "kernel appears to lack IPsec support (neither CONFIG_KLIPS or CONFIG_NET_KEY are set)"
+diff -urN openswan-2.4.7/programs/_startklips/_startklips.in openswan-2.4.7.new/programs/_startklips/_startklips.in
+--- openswan-2.4.7/programs/_startklips/_startklips.in 2006-11-13 21:27:18.000000000 +0100
++++ openswan-2.4.7.new/programs/_startklips/_startklips.in 2007-04-16 11:57:45.000000000 +0200
+@@ -147,7 +147,7 @@
+ then
+ # attach the interface and bring it up
+ ipsec tncfg --attach --virtual $virt --physical $phys
+- ifconfig $virt inet $addr $type $otheraddr netmask $mask $mtu
++ ifconfig $virt $addr $type $otheraddr netmask $mask $mtu
+ fi
+
+ # if %defaultroute, note the facts