François TOURDE a écrit : > Le 13491ième jour après Epoch, > [EMAIL PROTECTED] écrivait: > >> j'ai un portable avec 2 interfaces eth0 (lan) et wifi (eth1). Je veux >> que dans le cas où un rj45 est branché avec "du net dedans" :) , la >> connection internet soit activée par l'ethernet et seulement pour >> l'ethernet dc pour eth0. Si aucun rj45 n'est branché, alors le wifi >> tourne en permanence à la recherche d'AP. > > Tu peux par exemple faire un truc du genre: > >> elif lan >> # If the testmii at the top was successful >> set INTERFACE eth0 >> testdhcp '*.*.*.*' dhcp > > always at remove_wlan > >> # testarp eth0,00:24:5e:17:12:11,10.2.0.4 morrinsville >> # testping 192.168.138.1,192.168.138.55 queenstown >> # testping 202.49.41.18,202.49.41.1 rotorua > > et mettre dans ton whereami.conf un truc du genre: > > +remove_wlan /sbin/ifdown eth1 > -remove_wlan /sbin/ifup eth1 > >> Sinon j'aimerais bien comprendre qu'elles sont les conséquences du >> "notat" > > Le principe de whereami est de trouver une *liste* de /locations/ > valides. Faire un /notat/ retire de la liste l'élément en question.
Oki dc en mettant "always notat wlan,wdhcp" comme suit : elif lan # If the testmii at the top was successful set INTERFACE eth0 testdhcp '*.*.*.*' dhcp always notat wlan,wdhcp # testarp eth0,00:24:5e:17:12:11,10.2.0.4 morrinsville # testping 192.168.138.1,192.168.138.55 queenstown # testping 202.49.41.18,202.49.41.1 rotorua else # If the testmii at the top failed # modprobe prism54 w_eth1 # always modprobe orinoco w_eth1 # always modprobe ath_pci atheros # always modprobe ipw2100 w_eth1 # ... and we unload this in whereami.conf, if we don't find one, # in an attempt to minimise power, and RFI notat lan set INTERFACE eth1 testap scan wlan fi ça marche aussi non ? En fait j'essaye le moins possible d'utiliser des commandes ds le whereami.conf et de jouer le plus possible sur la syntaxe... Merci en tt cas Guillaume -- Lisez la FAQ de la liste avant de poser une question : http://wiki.debian.net/?DebianFrench Vous pouvez aussi ajouter le mot ``spam'' dans vos champs "From" et "Reply-To:" To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]