On Wednesday 04 May 2005 01.14, Aaron Griffin wrote:
> Ok, my input...Judd, I actually like your implementation slightly
> better than mine (and Pierre's)
>
> Let me suggest something:
> ---------------------------------------------------------------------------
>---------------- /etc/conf.d/net_profiles
> lo:
>   config="lo 127.0.0.1"
> home:
>   wireless="eth0 mode managed essid mylan"
>   config="eth0 192.168.1.2 netmask 255.255.255.0"
>   route="default gw 192.168.1.1"
>   on_connect="echo connected @ home"
> school:
>   wireless="eth0 mode managed essid school"
>   config="eth0 dhcp"
>   on_disconnect="echo disconnect from school"
> wired:
>   config="eth1 192.168.0.2 netmask 255.255.255.0"
>   route="default gw 192.168.0.1"
> ---------------------------------------------------------------------------
>---------------- /etc/rc.conf:
> NET_PROFILES=(lo home !school !wired)
> ---------------------------------------------------------------------------
>----------------
>
> This is some random conglomaration... I like readable names for config
> variables... I've come to like the way you setup the whole options
> line as one thing instead of individual parameters... it vastly
> simplifies these things.
>
> source the profile's file... if "wireless" exists, do that stuff
> first, then do ifconfig $config... same with route (if exists)...
> on_connect and on_disconnect are kinda obvious.
>
> another stray idea I've been tossing around is the ability to create a
> profile named "scan" (let's say) which uses iwlist to match the
> strongest AP+ESSID with a profile and connect - it shouldn't require
> any changes to the main network script, though (that implies that each
> profile shouldn't have varying variable names...)
> run the scan, source the proper profile, and the network script does it's
> job
>
> as a disclaimer, these are just random musings... and may not be very
> thought out right now...

Very nice construction. It would be nice to have an icon on the desktop that 
does a rescan when a notebook is reopened at a new place.

regards
guran
-- 
Arch Linux 0.7 Wombat

Only in a society that has 'a priori' defined what is the truth
can the result from the evolution of life be defined false.

_______________________________________________
arch mailing list
[email protected]
http://www.archlinux.org/mailman/listinfo/arch

Reply via email to