Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 102431 Details for
Bug 155808
net-misc/vpnc-0.3.4_pre20061029 - issues with vpnc-script
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
proposed patch for vpnc-script
vpnc-script.patch (text/plain), 927 bytes, created by
Igor Nazarenko
on 2006-11-20 14:24:24 UTC
(
hide
)
Description:
proposed patch for vpnc-script
Filename:
MIME Type:
Creator:
Igor Nazarenko
Created:
2006-11-20 14:24:24 UTC
Size:
927 bytes
patch
obsolete
>--- vpnc-script 2006-10-28 15:02:03.000000000 -0700 >+++ /etc/vpnc/vpnc-script 2006-11-17 11:44:53.000000000 -0800 >@@ -46,6 +46,9 @@ > > do_pre_init() { > if [ "$OS" = "Linux" ]; then >+ if [ ! -e /dev/net/tun ]; then >+ modprobe tun 2>/dev/null >+ fi > if (exec 6<> /dev/net/tun) > /dev/null 2>&1 ; then > : > else # can't open /dev/net/tun >@@ -120,7 +123,12 @@ > > reset_default_route() { > $IPROUTE route $route_syntax_del default > /dev/null 2>&1 >- $IPROUTE route add `cat "$DEFAULT_ROUTE_FILE"` >+ exec < $DEFAULT_ROUTE_FILE >+ while read line >+ do >+ $IPROUTE route add $line >+ done >+ > $IPROUTE route flush cache > } > >@@ -164,7 +172,11 @@ > > reset_default_route() { > route $route_syntax_del default >- route add default $route_syntax_gw `cat "$DEFAULT_ROUTE_FILE"` >+ exec < $DEFAULT_ROUTE_FILE >+ while read line >+ do >+ route add default $route_syntax_gw $line >+ done > } > > del_network_route() {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 155808
: 102431