1 |
$ esearch quickswitch |
2 |
[ Results for search key : quickswitch ] |
3 |
[ Applications found : 1 ] |
4 |
|
5 |
* app-admin/quickswitch |
6 |
Latest version available: 1.05 |
7 |
Latest version installed: [ Not Installed ] |
8 |
Size of downloaded files: 19 kB |
9 |
Homepage: http://quickswitch.sf.net |
10 |
Description: Utility to switch network profiles on the fly |
11 |
License: GPL-2 |
12 |
|
13 |
Ca pourrait t'interesser... il change tout seul de config réseau, et |
14 |
peut executer un script avant et apres chaque switch. Il gere meme un |
15 |
changement de config selon le profil (pour les conf. firefox ou gaim par |
16 |
ex.) |
17 |
|
18 |
Pour la variable proxy, j'ai un petit truc. comme quickswitch change le |
19 |
nom de machine selon le profil (boulot/perso), j'ai dans mon .bashrc |
20 |
|
21 |
[ $(hostname) = "nom_boulot" ] && export http_proxy=111.111.111.111:8000 |
22 |
|
23 |
si le nom est le meme, tu peux mettre par ex |
24 |
|
25 |
echo 'boulot' > /var/netprofile |
26 |
|
27 |
dans le script executé apres le switch ... |
28 |
ca devient |
29 |
|
30 |
[ $(cat /var/netprofile) = 'boulot' ] && export ... |
31 |
|
32 |
et voila le travail!! |
33 |
|
34 |
:) |
35 |
|
36 |
grillot sebastien wrote: |
37 |
> Voila qui est resolu donc desole pour le bruit... |
38 |
> J'ai fais un env-update && source /etc/profile mais ca n'a eu aucun |
39 |
> effet, killé le X pareil... redemarrage... à bah voila c'est bon... |
40 |
> Voila :o) |
41 |
> |
42 |
> Pardon encore pour le bruit |
43 |
> |
44 |
> Amicalement |
45 |
> |
46 |
> Seb |
47 |
> -- |
48 |
> Regist. Linux User #344952 |
49 |
> |
50 |
> Experience is the name everyone gives to their mistakes. |
51 |
> -- Oscar Wilde |
52 |
> |
53 |
-- |
54 |
gentoo-user-fr@g.o mailing list |