Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#6780 - Network startscript - profile chain
Attached to Project:
Arch Linux
Opened by Peter Feuerer (piie) - Sunday, 01 April 2007, 09:22 GMT
Last edited by James Rayner (iphitus) - Saturday, 15 December 2007, 12:24 GMT
Opened by Peter Feuerer (piie) - Sunday, 01 April 2007, 09:22 GMT
Last edited by James Rayner (iphitus) - Saturday, 15 December 2007, 12:24 GMT
|
DetailsI patched the /etc/rc.d/network script, to start network profiles in a
chain, and stop as soon as the first network successfully started. Therefore I introduced a new modifier in /etc/rc.conf for the NET_PROFILES line, the colon. Little example: /etc/rc.conf: NET_PROFILES=(prof1 prof2 :prof3 prof4 :prof5) prof1, prof2 and prof4 are started the "old" way. prof3 and prof5 are stored in the chain and the script tries first to start prof3, if it successes, prof5 is skipped. Starting a profile can fail, if the cable is not plugged in (tested with mii-tool), or there is no dhcp response (if dhcp is used). Patch attached (cd /etc/rc.d/ ; patch < /path/to/network.patch) |
This task depends upon
Closed by James Rayner (iphitus)
Saturday, 15 December 2007, 12:24 GMT
Reason for closing: Won't implement
Additional comments about closing: No plans to implement, thought patches against netcfg2 welcome.
Saturday, 15 December 2007, 12:24 GMT
Reason for closing: Won't implement
Additional comments about closing: No plans to implement, thought patches against netcfg2 welcome.
network.patch
there's a new 'multi' profile, i'll just add an extra option :)
See here: http://wiki.archlinux.org/index.php/Network_Scripts
This is still in flux though, although somewhat stable. discussion is occurring on arch-dev-public
James