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
Task Type Feature Request
Category System
Status Closed
Assigned To James Rayner (iphitus)
Architecture All
Severity Low
Priority Normal
Reported Version 0.7.2 Gimmick
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

I 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.
Comment by James Rayner (iphitus) - Tuesday, 03 April 2007, 10:18 GMT
hrm. ok, will implement this in the new netscripts.

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

Loading...