FS#7555 - trivial fix: ifplugd.action should call /etc/rc.d/network ifup|ifdown
Attached to Project:
Arch Linux
Opened by Loic Nageleisen (lloeki) - Tuesday, 03 July 2007, 13:33 GMT
Last edited by Thayer Williams (thayer) - Sunday, 01 February 2009, 22:50 GMT
Opened by Loic Nageleisen (lloeki) - Tuesday, 03 July 2007, 13:33 GMT
Last edited by Thayer Williams (thayer) - Sunday, 01 February 2009, 22:50 GMT
|
Details
Description:
instead of copy-pasting stuff from /etc/rc.d/network, which leads to duplicated and offsync code (resulting in bugs like task 7204), /etc/ifplugd.action should look like: case "$2" in up) /etc/rc.d/network hotplug_ifup $1 ;; down) /etc/rc.d/network ifdown $1 ;; *) echo "Wrong arguments" > /dev/stderr ;; esac notes: - this fixes task #7204 (in a, IMHO, more consistent manner) - this depends on task #7554 (because UP state != operational interface) Additional info: * extra/ifplugd 0.28-3 |
This task depends upon
Closed by Thayer Williams (thayer)
Sunday, 01 February 2009, 22:50 GMT
Reason for closing: Fixed
Additional comments about closing: I believe this has been fixed--no other feedback provided.
Sunday, 01 February 2009, 22:50 GMT
Reason for closing: Fixed
Additional comments about closing: I believe this has been fixed--no other feedback provided.
so it should call ifup instead of hotplug_ifup.
FS#7554is fixed. ;-)<pre>
ifdown()
{
eval ifcfg="\$${1}"
if [ "$ifcfg" = "dhcp" ]; then
/sbin/dhcpcd -k ${1} #my update
#/bin/kill `cat /etc/dhcpc/dhcpcd-${1}.pid`
</pre>
I hope that will be repaired in new version ;-)
It brings the devices up but I have to call dhcp on the interfaces manually. Should this be counted as network scripts issue? Maybe just my config?
eth0=dhcp
INTERFACES=(!eth0)
ROUTES=(!gateway)
I vaguely remember having some problems otherwise.
...so, when do these fixes get packaged up and sent out? (when are they going to be made default fixes?)
FS#7554is already available in initscripts from Testing repo....so, when do these fixes get packaged up and sent out? (when are they going to be made default fixes?)