Summary: | net.eth?: Add hook to run script before ifconfig (for wireless, etc.) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Luke Maurer (Jyrinx) <Luke.Maurer> |
Component: | [OLD] Core system | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | RESOLVED FIXED | ||
Severity: | enhancement | CC: | joerg |
Priority: | High | Keywords: | Inclusion |
Version: | 1.4_rc4 | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
Modified net.eth0 to run script before ifconfig step
New /etc/conf.d/net with comments on new preifup option ifupdown proof of concept |
Description
Luke Maurer (Jyrinx)
2004-01-14 13:33:06 UTC
Created attachment 23817 [details, diff]
Modified net.eth0 to run script before ifconfig step
Created attachment 23818 [details, diff]
New /etc/conf.d/net with comments on new preifup option
speaking of which, jay :P Someone close this bug as net.eth0 in baselayout >= 1.8.8 has this functionality by allowing custom preup() and predown() functions Yep *** Bug 52763 has been marked as a duplicate of this bug. *** Created attachment 35994 [details]
ifupdown proof of concept
I've created a small python script, which imitates the debian ifup/ifdown
mechanism and is more flexible than the current shellscript.
This script is more a proof of concept than a ready-to-ship tool. At the moment
it lacks a proper error handling, pre-up and post-down scripting mechanisms and
a proper handling of other kind of devices (pppoe, plip, ...). It relies
heavily on /sbin/ip, which does the real work (setting addresses, routes,
bringing devices up and down).
The tgz includes a small example of the configuration file, which illustrates
the possibilites of ifup/ifdown. Note: make ifdown a link to ifup
|