Ticket #57 (closed enhancement: worksforme)
Opened 2 years ago
Last modified 2 years ago
No per-device postup scripts
Reported by: | Aron <aronparsons@gmail.com> | Owned by: | roy |
---|---|---|---|
Priority: | trivial | Milestone: | |
Component: | init.d scripts | Version: | |
Keywords: | Cc: |
Description
Would it be possible to add support for per-device postup scripts (e.g. postup_eth0)?
My intended use is to enable wake-on-lan (ethtool -s eth0 wol g) after eth0 is up, but if I just put it in postup() it is executed 4 times (lo, eth0, vbox0, br0).
Change History
comment:260 Changed 2 years ago by roy
comment:261 Changed 2 years ago by Aron <aronparsons@gmail.com>
- Status changed from new to resolved
- Resolution set to worksforme
Ah, perfect. I didn't see that it was passing the interface to the subroutine. Thanks for pointing that out.
Note: See
TracTickets for help on using
tickets.
You can do this in a postup()
postup()
{
}