Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 113983 Details for
Bug 171697
net-misc/vpnc - vpnc-script patch to use /sbin/resolvconf
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to use /sbin/resolvconf if available
vpnc-script.patch (text/plain), 1.25 KB, created by
Gustavo Sverzut Barbieri
on 2007-03-21 16:55:44 UTC
(
hide
)
Description:
Patch to use /sbin/resolvconf if available
Filename:
MIME Type:
Creator:
Gustavo Sverzut Barbieri
Created:
2007-03-21 16:55:44 UTC
Size:
1.25 KB
patch
obsolete
>--- vpnc-script.orig 2007-03-21 13:33:57.000000000 -0300 >+++ vpnc-script 2007-03-21 13:47:09.000000000 -0300 >@@ -211,7 +211,7 @@ > } > fi > >-write_resolvconf() { >+write_resolvconf_file() { > grep '^#@VPNC_GENERATED@' /etc/resolv.conf > /dev/null 2>&1 || cp -- /etc/resolv.conf "$RESOLV_CONF_BACKUP" > NEW_RESOLVCONF="#@VPNC_GENERATED@ -- this file is generated by vpnc > # and will be overwritten by vpnc >@@ -305,7 +305,28 @@ > fi > } > >-reset_resolvconf() { >+write_resolvconf_manager() { >+ NEW_RESOLVCONF="" >+ for i in $INTERNAL_IP4_DNS; do >+ NEW_RESOLVCONF="$NEW_RESOLVCONF >+nameserver $i" >+ done >+ if [ -n "$CISCO_DEF_DOMAIN" ]; then >+ NEW_RESOLVCONF="$NEW_RESOLVCONF >+search $CISCO_DEF_DOMAIN" >+ fi >+ echo "$NEW_RESOLVCONF" | /sbin/resolvconf -a $TUNDEV >+} >+ >+write_resolvconf() { >+ if [ -x /sbin/resolvconf ]; then >+ write_resolvconf_manager $@ >+ else >+ write_resolvconf_file $@ >+ fi >+} >+ >+reset_resolvconf_file() { > if [ ! -e "$RESOLV_CONF_BACKUP" ]; then > return > fi >@@ -330,6 +351,18 @@ > fi > } > >+reset_resolvconf_manager() { >+ /sbin/resolvconf -d $TUNDEV >+} >+ >+reset_resolvconf() { >+ if [ -x /sbin/resolvconf ]; then >+ reset_resolvconf_manager $@ >+ else >+ reset_resolvconf_file $@ >+ fi >+} >+ > do_connect() { > if [ -n "$CISCO_BANNER" ]; then > echo "Connect Banner:"
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 171697
: 113983 |
128450