confusion over INTERFACE or IFACE in net-device-added

Bug #1498215 reported by Richard Earnshaw
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
upstart
New
Undecided
Unassigned

Bug Description

Release ubuntu 14.04, amd64

The manual page init(5) contains the text:

             start on net-device-added INTERFACE!=lo

However, it would appear that the upstart module used by /etc/network/if-up.d/upstart uses IFACE

if [ "$IFACE" != lo ]; then
    initctl emit -n net-device-up \
        "IFACE=$IFACE" \
        "LOGICAL=$LOGICAL" \
        "ADDRFAM=$ADDRFAM" \
        "METHOD=$METHOD"
fi

So the manual says the interface should be INTERFACE, but the code seems to use IFACE (and indeed, unless you test for IFACE, events passed by NetworkManager are not detected correctly)

Really these ought to be consistent.

There seems to be further evidence of confusion in other upstart scripts in my init directory; some use IFACE while others seem to use INTERFACE.

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.