Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 156613 - network configuration: preup_eth(), predown_eth0() etc.
Summary: network configuration: preup_eth(), predown_eth0() etc.
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-29 07:25 UTC by Przemyslaw Kwiatkowski
Modified: 2006-12-06 15:46 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Przemyslaw Kwiatkowski 2006-11-29 07:25:10 UTC
New feature idea:

Gentoo network configuration is exellent. I was very surprised, that it is impossible to create preup_eth0(), postdown_eth1() and similar functions. Currently you have to make one common preup() function and use "if [ "$IFACE" == "eth0" ]; then .... else if.... etc.".

In my opinion adding a couple of seperate functions (_eth0, _eth1, _wifi0, _tun2 etc.) is more "gentoo way".

What do you think?
Comment 1 Roy Marples (RETIRED) gentoo-dev 2006-12-06 15:46:29 UTC
If you really want that, you can create /etc/conf.d/net.eth0 and write a preup() there as it would override one in /etc/conf.d/net