Handle interfaces configured by DHCP

Bug #385423 reported by Simon Kuhn
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ucarp (Debian)
New
Undecided
Unassigned
ucarp (Ubuntu)
Triaged
Undecided
Unassigned

Bug Description

Binary package hint: ucarp

The ucarp if-up script requires $IF_ADDRESS which is only provided by ifup if listed in /etc/network/interfaces (nothing set dynamically is populated into the variables). In order to allow for DHCP configured real interfaces, the if-up script can be altered to grab the IP address itself, by adding:

if [ -z "$IF_ADDRESS" ]; then
        IF_ADDRESS="`ifconfig $IFACE | sed -rn 's/^.*inet addr:([0-9.]+) .*/\1/p'`"
fi

to /etc/network/if-up.d/ucarp

Revision history for this message
Simon Kuhn (simonkuhn) wrote :
Changed in ucarp (Ubuntu):
status: New → Triaged
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.