Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 385158 Details for
Bug 519944
net-misc/netifrc-0.2.2 - additional action required to terminate =net-misc/dhcpcd-6.4.3 when dhcp_ethX="release"
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to use dhcpcd -k instead of SIGHUP in netifrc
netifrc-0.2.2-release.patch (text/plain), 962 bytes, created by
Nuno Silva
on 2014-09-20 07:37:03 UTC
(
hide
)
Description:
Patch to use dhcpcd -k instead of SIGHUP in netifrc
Filename:
MIME Type:
Creator:
Nuno Silva
Created:
2014-09-20 07:37:03 UTC
Size:
962 bytes
patch
obsolete
>From a43effa1fcf9db99fa72f4038d88e6dc8fb8e903 Mon Sep 17 00:00:00 2001 >From: "Nuno Silva (njsg)" <njsg@iki.fi> >Date: Sat, 20 Sep 2014 09:53:59 +0300 >Subject: [PATCH] Use dhcpcd -k to force the release, instead of SIGHUP > >Newer dhcpcd versions use a different signal internally (SIGALRM), but >dhcpcd -k interface_name will work with both newer and older versions >of dhcpcd. >--- > net/dhcpcd.sh | 7 +++++-- > 1 file changed, 5 insertions(+), 2 deletions(-) > >diff --git a/net/dhcpcd.sh b/net/dhcpcd.sh >index 2c0f919..bdb60c6 100644 >--- a/net/dhcpcd.sh >+++ b/net/dhcpcd.sh >@@ -81,8 +81,11 @@ dhcpcd_stop() > eval opts=\$dhcp_${IFVAR} > [ -z "${opts}" ] && opts=${dhcp} > case " ${opts} " in >- *" release "*) sig=SIGHUP;; >+ *" release "*) dhcpcd -k "${IFACE}" ;; >+ *) >+ start-stop-daemon --stop --quiet \ >+ --signal ${sig} --pidfile "${pidfile}" >+ ;; > esac >- start-stop-daemon --stop --quiet --signal ${sig} --pidfile "${pidfile}" > eend $? > } >-- >1.8.5.5 >
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 519944
: 385158