Modify

Opened 6 years ago

Closed 5 years ago

Last modified 4 years ago

#11828 closed defect (fixed)

netifd ignores /etc/udhcpc.user

Reported by: m.storchak@… Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: base system Version: Trunk
Keywords: netifd dhcp udhcpc Cc:

Description

Previous udhcpc script, /usr/share/udhcpc/default.script, used to call /etc/udhcpc.user after setting up interface.
I propose to add the same hook to /lib/netifd/dhcp.script:

# tail  /lib/netifd/dhcp.script 
        ;;
        renew|bound)
                setup_interface
        ;;
esac

# user rules
[ -f /etc/udhcpc.user ] && . /etc/udhcpc.user

exit 0

Attachments (0)

Change History (5)

comment:1 Changed 6 years ago by nbd

what do you need it for? wouldn't it be better to just use /etc/hotplug.d/iface?

comment:2 Changed 6 years ago by m.storchak@…

I have 2 wan connections and I used it to set up routing with load balancing by combining settings from both interfaces.
I'll try to use hotplug, thanks!

comment:3 Changed 6 years ago by anonymous

hotplug method works well for ifup/ifdown events, and looks more uniform then /etc/udhcpc.user and /etc/ppp/ip-up.d/*, but it doesn't work for dhcp renew. Is there a way to notify hotplug about address renewal? It may look like ifdown+ifup or be a separate event.

comment:4 Changed 5 years ago by nbd

  • Resolution set to fixed
  • Status changed from new to closed

fixed in r34704

comment:5 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.