The Saltydog wrote:

> La mia scheda wireless � eth0 ed � collegata tramite bridge a quella
> ethernet. Uso gnome..
> 
> 
> On Thu, 27 Jan 2005 23:13:51 +0100, Marco
> <[EMAIL PROTECTED]> wrote:
>> The Saltydog wrote:
>> 
>> > Sto diventando matto con il mio laptop X31...
>> >
>> > Come devo settarlo per fare in modo che funzioni in DHCP sia sulla
>> > wireless che sulla ethernet? Cio�, se ho a disposizione un access
>> > point e un plug ethernet, vorrei poter scegliere quale dei due usare..
>> >
>> > Sembra andare solo la wireless (eth0)...
>> >
>> > Scusate, ma � la prima volta che sono alle prese con il wi-fi su linux
>> 
>> 
>> in genere eth0 � l'interfaccia di rete tradizionale, la mia scheda
>> wireless si chiama ath0
>> 
>> ...comunque prova a fare
>> 
>> dhclient ath0
>> 
>> e installa kwifimanager, pu� darti qualche indicazione utile
>> 
>> se hai una scheda wireless pcmcia prova ad inserirla a computer acceso e
>> dai un'occhiata al log
>> 
>> ciao
>> 
>> marco
>> 
>> --
>> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
>> with a subject of "unsubscribe". Trouble? Contact
>> [EMAIL PROTECTED]
>> 
>>
scusa non avevo capito il problema...tu vorresti qualcosa che ti possa fare
scegliere in fretta quale conf di rete utilizzare

io ho scopiazzato da una rivista e adattato uno script che mi permette da
grub di scegliere quale configurazione di rete utilizzare (statico con
cavo, dhcp, dhcp wireless)
l'ho messo in rc.S

� grezzo ma funziona, spero ti possa servire

#!/bin/sh

start () {

locazione=`cat /proc/cmdline | cut -d" " -f4 | cut -d= -f2`

# File resolv.conf

rm /etc/resolv.conf

if [ -f /etc/locazione/$locazione/resolv.conf ]; 
 then cp /etc/locazione/$locazione/resolv.conf /etc
 else echo "FIle $locazione/resolv.conf non presente !"
fi

############

# File interfaces

rm /etc/network/interfaces

if [ -f /etc/locazione/$locazione/interfaces ];
 then cp /etc/locazione/$locazione/interfaces /etc/network
 else echo "FIle $locazione/interfaces non presente !"
fi

}

restart () {

echo "Dimmi la locazione"
read luogo

if [ "$locazione" = "" ]; then
 echo "uso {static|dhcp}"
fi

locazione=$luogo

# File resolv.conf

rm /etc/resolv.conf

if [ -f /etc/locazione/$locazione/resolv.conf ]; 
 then cp /etc/locazione/$locazione/resolv.conf /etc
 else echo "FIle $locazione/resolv.conf non presente !"
fi

############

# File interfaces

rm /etc/network/interfaces

if [ -f /etc/locazione/$locazione/interfaces ];
 then cp /etc/locazione/$locazione/interfaces /etc/network
 else echo "FIle $locazione/interfaces non presente !"
fi

}


case $1 in
 start)
 start
 ;;
 
 restart)
 restart
 ;;

 "")
 echo "uso: restart"
 ;;

esac




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Rispondere a