[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Configuration automatique interface ethernet et/ou wifi [Résolu]



Bon, je réponds tard, mais chuis pas le seul ici, donc pas coupable :)

Le 13921ième jour après Epoch,
Alexandre écrivait:

> 2- J'ai rajouté une ligne à /usr/share/whereami/testmii:
>  après la ligne qui contient "ifconfig $1 up" au début du script (9ème ligne chez moi):
> je rajoute "sleep 3" pour que le testmii prenne bien en charge le
>  ifconfig eth0 up

faut faire gaffe à ce genre de "kluges", à toi de gérer ;)

[...]
> =wifihome iwconfig eth1 essid "wifihome"
> =wifihome iwconfig eth1 channel "3"
> =wifihome iwconfig eth1 key "motdepasse"
> =wifihome setmailrelay "smtp.free.fr"
> -wifihome iwconfig eth1 key off
[...]
> =hotel iwconfig eth1 essid "hotel"
> =hotel iwconfig eth1 channel "6"
> =hotel setmailrelay ""
[...]
> =ipfixe ifconfig eth0 netmask "255.255.255.0"
> =ipfixe ifconfig eth0 broadcast "147.210.*.*"
> =ipfixe ifconfig eth0 "147.210.*.*"
> =ipfixe route add default gw "147.210.*.*"
> =ipfixe setresolver search blabbla.fr nameserver 193.*.*.* 147.210.*.*
> =ipfixe setmailrelay "smtp.blabbla.fr"

J'ai l'impression que tu utilises bcp le "="... A mon avis il serait
préférable de privilégier les + et -, surtout dans le cas des set* ...

Je n'ai aucun "=" dans ma config whereami, et ça marche plutôt bien :p


Reply to: