> A Dijous 01 Febrer 2007 20:10, Lluís Gras va escriure: >> Bones, >> >> Aprofitant la "ditslèxia", bon terme ;-) >> >> Us agrairia molt si algú de vosaltres que disposi d'una placa mare amb >> iee1394 proves a executar el guió següent, requereix tenir instal·lat el >> paquet dialog. >> > > Jo en tinc una... > > 05:0b.0 FireWire (IEEE 1394): Texas Instruments TSB43AB22/A > IEEE-1394a-2000 > Controller (PHY/Link) > > (Es veu com eth1) > > Però l'escript no treu res. Em sembla que hi ha un error a la línia > > "if [ -f /sys/class/net/$DEVICE/device/device" > > Perquè jo a /sys/class/net/eth1/device no hi tinc cap subdirectori device > sinó > això: > > drwxr-xr-x 4 root root 0 2007-02-01 22:06 0011d800006c15ae > lrwxrwxrwx 1 root root 0 2007-02-02 02:05 > bus -> ../../../../../bus/ieee1394 > lrwxrwxrwx 1 root root 0 2007-02-02 02:05 > host_id -> > ../../../../../devices/pci0000:00/0000:00:09.0/0000:05:0b.0/fw-host0/0011d800006c15ae > lrwxrwxrwx 1 root root 0 2007-02-02 02:05 > ieee1394_host:fw-host0 -> ../../../../../class/ieee1394_host/fw-host0 > -r--r--r-- 1 root root 4096 2007-02-02 02:05 in_bus_reset > lrwxrwxrwx 1 root root 0 2007-02-02 02:05 > irm_id -> > ../../../../../devices/pci0000:00/0000:00:09.0/0000:05:0b.0/fw-host0/0011d800006c15ae > -r--r--r-- 1 root root 4096 2007-02-02 02:05 is_busmgr > -r--r--r-- 1 root root 4096 2007-02-02 02:05 is_cycmst > -r--r--r-- 1 root root 4096 2007-02-02 02:05 is_irm > -r--r--r-- 1 root root 4096 2007-02-02 02:05 is_root > lrwxrwxrwx 1 root root 0 2007-02-02 02:05 > net:eth1 -> ../../../../../class/net/eth1 > -r--r--r-- 1 root root 4096 2007-02-02 02:05 node_count > -r--r--r-- 1 root root 4096 2007-02-02 02:05 nodes_active > drwxr-xr-x 2 root root 0 2007-02-01 22:06 power > -r--r--r-- 1 root root 4096 2007-02-02 02:05 selfid_count > lrwxrwxrwx 1 root root 0 2007-02-02 02:05 > subsystem -> ../../../../../bus/ieee1394 > --w------- 1 root root 4096 2007-02-02 02:05 uevent > > Espero que et serveixi. > -- > ******************************************************* > * Orestes Mas Casals - UPC * > * Linux User 285092 http://counter.li.org * > * Membre de l'equip català de KDE http://cat.kde.org/ * > * Clau pública PGP: 0x97451E6A a http://pgp.mit.edu/ * > ******************************************************* > > >
Hola Orestes , gràcies per la comprovació, de fet l'script funciona correctament, és a dir tan sols genera el menú per a les interfícies de xarxa que sí tenen el "fitxer" /sys/class/net/$DEVICE/device/device. Vinga ... -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

