Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 181457 Details for
Bug 258343
net-dns/ddclient-3.8.0: fails to update IP on hardened-gentoo
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for ddclient to use iproute2
ddclient-iproute2.patch (text/plain), 1.42 KB, created by
cilly
on 2009-02-09 17:08:45 UTC
(
hide
)
Description:
patch for ddclient to use iproute2
Filename:
MIME Type:
Creator:
cilly
Created:
2009-02-09 17:08:45 UTC
Size:
1.42 KB
patch
obsolete
>diff -burN ddclient-3.7.3.orig/ddclient ddclient-3.7.3/ddclient >--- ddclient-3.7.3.orig/ddclient 2008-09-24 00:29:17.000000000 +0200 >+++ ddclient-3.7.3/ddclient 2008-09-24 00:31:31.000000000 +0200 >@@ -503,7 +503,7 @@ > [ "ip", "=s", "-ip address : set the IP address to 'address'" ], > "", > [ "if", "=s", "-if interface : obtain IP address from 'interface'" ], >- [ "if-skip", "=s", "-if-skip pattern : skip any IP addresses before 'pattern' in the output of ifconfig {if}" ], >+ [ "if-skip", "=s", "-if-skip pattern : skip any IP addresses before 'pattern' in the output of ip addr show {if}" ], > "", > [ "web", "=s", "-web provider|url : obtain IP address from provider's IP checking page" ], > [ "web-skip", "=s", "-web-skip pattern : skip any IP addresses before 'pattern' on the web provider|url" ], >@@ -1192,7 +1192,7 @@ > > { > local $opt{'use'} = 'if'; >- foreach my $if (grep {/^[a-zA-Z]/} `ifconfig -a`) { >+ foreach my $if (grep {/^[a-zA-Z]/} `ip addr show`) { > $if =~ s/:?\s.*//is; > local $opt{'if'} = $if; > printf "use=if, if=%s address is %s\n", opt('if'), define(get_ip('if'), 'NOT FOUND'); >@@ -1799,7 +1799,7 @@ > > } elsif ($use eq 'if') { > $skip = opt('if-skip') || ''; >- $reply = `ifconfig $arg 2> /dev/null`; >+ $reply = `ip addr show $arg 2> /dev/null`; > $reply = '' if $?; > > } elsif ($use eq 'cmd') {
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 258343
:
181456
| 181457