Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problema hotplug
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
^Sporting^
Tux's lil' helper
Tux's lil' helper


Joined: 06 Oct 2003
Posts: 131
Location: 009°11'28'' E 045°36'39'' N

PostPosted: Fri Jan 09, 2004 1:07 pm    Post subject: Problema hotplug Reply with quote

Ciao gente!
ho riscontrato un po' di errori all'avvio della macchina, in particolare quando lancia il servizio hotplug.
Siccome nei vari log nn ho trovato nulla che mi potesse dire dov'era l'errore, ho provato a far ripartire il servizio usando
Code:
/etc/init.d/hotplug restart
innanzitutto credo di aver fatto la cosa + ovvia, ma nn sono sicuro che sia il metodo migliore (il mio livello di niubbaggine e' ancora +ttosto alto con questa distro :oops:)
Cmq, il risultato e' stato a dir poco catastrofico, riporto l'output:
Code:
root@gentoo_box:# /etc/init.d/hotplug restart
 * Stopping USB and PCI hotplugging...
/etc/hotplug/input.rc: /etc/hotplug/hotplug.functions: line 165: syntax error near unexpected token `else'
/etc/hotplug/input.rc: /etc/hotplug/hotplug.functions: line 165: `      else'
/etc/hotplug/pci.rc: hotplug.functions: line 165: syntax error near unexpected token `else'
/etc/hotplug/pci.rc: hotplug.functions: line 165: `     else'                                                                                    [ ok ]
* Starting USB and PCI hotplugging...
/etc/hotplug/input.rc: /etc/hotplug/hotplug.functions: line 165: syntax error near unexpected token `else'
/etc/hotplug/input.rc: /etc/hotplug/hotplug.functions: line 165: `      else'
/etc/hotplug/input.agent: hotplug.functions: line 165: syntax error near unexpected token `else'
/etc/hotplug/input.agent: hotplug.functions: line 165: `        else'
/etc/hotplug/input.agent: line 292: load_drivers: command not found
/etc/hotplug/input.agent: hotplug.functions: line 165: syntax error near unexpected token `else'
/etc/hotplug/input.agent: hotplug.functions: line 165: `        else'
/etc/hotplug/input.agent: line 292: load_drivers: command not found
/etc/hotplug/pci.rc: hotplug.functions: line 165: syntax error near unexpected token `else'
/etc/hotplug/pci.rc: hotplug.functions: line 165: `     else'
/etc/hotplug.d/default/default.hotplug: hotplug.functions: line 165: syntax error near unexpected token `else'
/etc/hotplug.d/default/default.hotplug: hotplug.functions: line 165: `  else'
/etc/hotplug/pci.agent: hotplug.functions: line 165: syntax error near unexpected token `else'
/etc/hotplug/pci.agent: hotplug.functions: line 165: `  else'
/etc/hotplug/pci.agent: line 154: load_drivers: command not found
/etc/hotplug.d/default/default.hotplug: hotplug.functions: line 165: syntax error near unexpected token `else'
/etc/hotplug.d/default/default.hotplug: hotplug.functions: line 165: `  else'
/etc/hotplug/pci.agent: hotplug.functions: line 165: syntax error near unexpected token `else'
/etc/hotplug/pci.agent: hotplug.functions: line 165: `  else'
/etc/hotplug/pci.agent: line 154: load_drivers: command not found
/etc/hotplug.d/default/default.hotplug: hotplug.functions: line 165: syntax error near unexpected token `else'
/etc/hotplug.d/default/default.hotplug: hotplug.functions: line 165: `  else'
/etc/hotplug/pci.agent: hotplug.functions: line 165: syntax error near unexpected token `else'
/etc/hotplug/pci.agent: hotplug.functions: line 165: `  else'
/etc/hotplug/pci.agent: line 154: load_drivers: command not found
/etc/hotplug.d/default/default.hotplug: hotplug.functions: line 165: syntax error near unexpected token `else'
/etc/hotplug.d/default/default.hotplug: hotplug.functions: line 165: `  else'
/etc/hotplug/pci.agent: hotplug.functions: line 165: syntax error near unexpected token `else'
/etc/hotplug/pci.agent: hotplug.functions: line 165: `  else'
/etc/hotplug/pci.agent: line 154: load_drivers: command not found
/etc/hotplug.d/default/default.hotplug: hotplug.functions: line 165: syntax error near unexpected token `else'
/etc/hotplug.d/default/default.hotplug: hotplug.functions: line 165: `  else'
/etc/hotplug/pci.agent: hotplug.functions: line 165: syntax error near unexpected token `else'
/etc/hotplug/pci.agent: hotplug.functions: line 165: `  else'
/etc/hotplug/pci.agent: line 154: load_drivers: command not found
/etc/hotplug.d/default/default.hotplug: hotplug.functions: line 165: syntax error near unexpected token `else'
/etc/hotplug.d/default/default.hotplug: hotplug.functions: line 165: `  else'
/etc/hotplug/pci.agent: hotplug.functions: line 165: syntax error near unexpected token `else'
/etc/hotplug/pci.agent: hotplug.functions: line 165: `  else'
/etc/hotplug/pci.agent: line 154: load_drivers: command not found
/etc/hotplug.d/default/default.hotplug: hotplug.functions: line 165: syntax error near unexpected token `else'
/etc/hotplug.d/default/default.hotplug: hotplug.functions: line 165: `  else'
/etc/hotplug/pci.agent: hotplug.functions: line 165: syntax error near unexpected token `else'
/etc/hotplug/pci.agent: hotplug.functions: line 165: `  else'
/etc/hotplug/pci.agent: line 154: load_drivers: command not found
/etc/hotplug.d/default/default.hotplug: hotplug.functions: line 165: syntax error near unexpected token `else'
/etc/hotplug.d/default/default.hotplug: hotplug.functions: line 165: `  else'
/etc/hotplug/pci.agent: hotplug.functions: line 165: syntax error near unexpected token `else'
/etc/hotplug/pci.agent: hotplug.functions: line 165: `  else'
/etc/hotplug/pci.agent: line 154: load_drivers: command not found
/etc/hotplug.d/default/default.hotplug: hotplug.functions: line 165: syntax error near unexpected token `else'
/etc/hotplug.d/default/default.hotplug: hotplug.functions: line 165: `  else'
/etc/hotplug/pci.agent: hotplug.functions: line 165: syntax error near unexpected token `else'
/etc/hotplug/pci.agent: hotplug.functions: line 165: `  else'
/etc/hotplug/pci.agent: line 154: load_drivers: command not found
/etc/hotplug.d/default/default.hotplug: hotplug.functions: line 165: syntax error near unexpected token `else'
/etc/hotplug.d/default/default.hotplug: hotplug.functions: line 165: `  else'
/etc/hotplug/pci.agent: hotplug.functions: line 165: syntax error near unexpected token `else'
/etc/hotplug/pci.agent: hotplug.functions: line 165: `  else'
/etc/hotplug/pci.agent: line 154: load_drivers: command not found
/etc/hotplug.d/default/default.hotplug: hotplug.functions: line 165: syntax error near unexpected token `else'
/etc/hotplug.d/default/default.hotplug: hotplug.functions: line 165: `  else'
/etc/hotplug/pci.agent: hotplug.functions: line 165: syntax error near unexpected token `else'
/etc/hotplug/pci.agent: hotplug.functions: line 165: `  else'
/etc/hotplug/pci.agent: line 154: load_drivers: command not found
/etc/hotplug.d/default/default.hotplug: hotplug.functions: line 165: syntax error near unexpected token `else'
/etc/hotplug.d/default/default.hotplug: hotplug.functions: line 165: `  else'
/etc/hotplug/pci.agent: hotplug.functions: line 165: syntax error near unexpected token `else'
/etc/hotplug/pci.agent: hotplug.functions: line 165: `  else'
/etc/hotplug/pci.agent: line 154: load_drivers: command not found
/etc/hotplug.d/default/default.hotplug: hotplug.functions: line 165: syntax error near unexpected token `else'
/etc/hotplug.d/default/default.hotplug: hotplug.functions: line 165: `  else'
/etc/hotplug/pci.agent: hotplug.functions: line 165: syntax error near unexpected token `else'
/etc/hotplug/pci.agent: hotplug.functions: line 165: `  else'
/etc/hotplug/pci.agent: line 154: load_drivers: command not found
/etc/hotplug.d/default/default.hotplug: hotplug.functions: line 165: syntax error near unexpected token `else'
/etc/hotplug.d/default/default.hotplug: hotplug.functions: line 165: `  else'
/etc/hotplug/pci.agent: hotplug.functions: line 165: syntax error near unexpected token `else'
/etc/hotplug/pci.agent: hotplug.functions: line 165: `  else'
/etc/hotplug/pci.agent: line 154: load_drivers: command not found
/etc/hotplug.d/default/default.hotplug: hotplug.functions: line 165: syntax error near unexpected token `else'
/etc/hotplug.d/default/default.hotplug: hotplug.functions: line 165: `  else'
/etc/hotplug/pci.agent: hotplug.functions: line 165: syntax error near unexpected token `else'
/etc/hotplug/pci.agent: hotplug.functions: line 165: `  else'
/etc/hotplug/pci.agent: line 154: load_drivers: command not found
/etc/hotplug.d/default/default.hotplug: hotplug.functions: line 165: syntax error near unexpected token `else'
/etc/hotplug.d/default/default.hotplug: hotplug.functions: line 165: `  else'
/etc/hotplug/pci.agent: hotplug.functions: line 165: syntax error near unexpected token `else'
/etc/hotplug/pci.agent: hotplug.functions: line 165: `  else'
/etc/hotplug/pci.agent: line 154: load_drivers: command not found
/etc/hotplug/usb.agent: hotplug.functions: line 165: syntax error near unexpected token `else'
/etc/hotplug/usb.agent: hotplug.functions: line 165: `  else'
/etc/hotplug/usb.agent: line 385: load_drivers: command not found
/etc/hotplug/usb.agent: line 419: load_drivers: command not found                                                                                   [ ok ]
Siccome questi errori sono apparsi dopo un emerge e relativo etc-update (ho usato la funzione -5 x' pensavo che facesse meno danni...ma mi sa che facevo bene a farmelo da me :roll:). La mia domanda e' se e' possibile che sia stato io a modificare erroneamente i file aggiornati con quelli esistenti oppure c'e' qlcs'altro che nn va..
Spero di esser stato chiaro e mi scuso x il post Kilometrico :(
Inutile dire che da quel giorno le periferiche usb nn me le rileva + :(
Grazie in anticipo
Bye!
Back to top
View user's profile Send private message
motaboy
Retired Dev
Retired Dev


Joined: 15 Dec 2003
Posts: 1483

PostPosted: Fri Jan 09, 2004 1:20 pm    Post subject: Reply with quote

Il primo consiglio è quello di provare a riemergere hotplug (ed anche le sue dipendenze), visto che questo sembra un errore di script bash.

Per il fatto del etc-update con -5 non è un problema per la sovrascrittura degli script di hotplug visto che tu non hai fatto modifiche ad essi.

Bye!
Back to top
View user's profile Send private message
^Sporting^
Tux's lil' helper
Tux's lil' helper


Joined: 06 Oct 2003
Posts: 131
Location: 009°11'28'' E 045°36'39'' N

PostPosted: Fri Jan 09, 2004 1:26 pm    Post subject: Reply with quote

motaboy wrote:
Il primo consiglio è quello di provare a riemergere hotplug (ed anche le sue dipendenze), visto che questo sembra un errore di script bash.

Per il fatto del etc-update con -5 non è un problema per la sovrascrittura degli script di hotplug visto che tu non hai fatto modifiche ad essi.

Bye!
L'avevo pensato, ma prima di peggiorare la situazione ho pensato di sentire un po' di campane ;D
Provo la tua soluzione e speriamo che si sistemi, nn ho alcuna voglia di reinstallare x questa cosa e l'usb mi serve proprio (altrimenti il tuo build sul bluetooth diventa inutilizzabile) ;D

/me dichiara di nn essere affiliato con il suddetto utente e la sua nn era pubblicita' occulta :wink:
Bye!
Back to top
View user's profile Send private message
^Sporting^
Tux's lil' helper
Tux's lil' helper


Joined: 06 Oct 2003
Posts: 131
Location: 009°11'28'' E 045°36'39'' N

PostPosted: Wed Jan 14, 2004 1:05 am    Post subject: Reply with quote

Eccomi qua di nuovo...
ho seguito il consiglio, riemergendo hotplug, ma gli errori sussistono.
Puo' essere da qlche altra parte il prob?
Me lo devo tenere?
Faccio un viaggetto a Lourdes? :lol:

P.S.: il rilevamento usb cmq nn ha subito danni, mi rileva tranquillamente qlsiasi cosa io attacchi, solo che sono fastidiosi tutti quei msg.
Plz help! :wink:
Bye!
Back to top
View user's profile Send private message
motaboy
Retired Dev
Retired Dev


Joined: 15 Dec 2003
Posts: 1483

PostPosted: Wed Jan 14, 2004 10:15 am    Post subject: Reply with quote

Ti da sempre problemi attorno alla linea 165 di hotplug.functions...

La mia parte dalla linea 160 alla linea 176 è cosi:

Code:
   # always run setup scripts after any matching kernel code has had
   # a chance to do its thing, no matter whether it was dynamically
   # or statically linked, or if there is only a user mode driver.
   # the script might re-enumerate usb devices after firmware download,
   # giving kernel code another chance.
   if [ -x $HOTPLUG_DIR/$TYPE/$MODULE ]; then
       debug_mesg Module setup $MODULE for $DESCRIPTION
       $HOTPLUG_DIR/$TYPE/$MODULE
       LOADED=true
   fi

   if [ "$LOADED" = false ]; then
       mesg "missing kernel or user mode driver $MODULE "
   fi
   if echo "$MODULE" | grep -q "usb-storage" > /dev/null 2>&1 ; then
       [ -x /usr/sbin/updfstab ] &&  /usr/sbin/updfstab
   fi


Il problema è che non c'è nessun "else", il tuo come è?

Io ho hotplug-20040105 ma non mi dava errori neanche col precedente.

Bye!
Back to top
View user's profile Send private message
^Sporting^
Tux's lil' helper
Tux's lil' helper


Joined: 06 Oct 2003
Posts: 131
Location: 009°11'28'' E 045°36'39'' N

PostPosted: Wed Jan 14, 2004 1:09 pm    Post subject: Reply with quote

Code:
        # a chance to do its thing, no matter whether it was dynamically
        # or statically linked, or if there is only a user mode driver.
        # the script might re-enumerate usb devices after firmware download,
        # giving kernel code another chance.
        if [ -x $HOTPLUG_DIR/$TYPE/$MODULE ]; then
            debug_mesg Module setup $MODULE for $DESCRIPTION
            $HOTPLUG_DIR/$TYPE/$MODULE
            LOADED=true

        fi

        if [ "$LOADED" = false ]; then
            mesg "missing kernel or user mode driver $MODULE "
        fi
        if echo "$MODULE" | grep -q "usb-storage" > /dev/null 2>&1 ; then
            [ -x /usr/sbin/updfstab ] &&  /usr/sbin/updfstab
        fi
e' identica, solo che nel mio file queste righe nn sono nella stessa posizione, cioe' partono dalla 170 fino alla 186.
nn so + che fare...e se provassi a fare prima l'umerge e poi di nuovo emerge, pensi che si possa risolvere?

EDIT (10 minuti dopo):
L'errore si ripeteva cosi':
Code:
/etc/hotplug/usb.agent: hotplug.functions: line 165: syntax error near unexpected token `else'
/etc/hotplug/usb.agent: hotplug.functions: line 165: `  else'
/etc/hotplug/usb.agent: line 385: load_drivers: command not found
/etc/hotplug/usb.agent: line 419: load_drivers: command not found

io sono andato alla riga 165 di hotplug.functions e ho trovato:
Code:
        else
Ho pensato... e se commentassi sta riga? (tanto peggio di cosi'...) detto, fatto:
Code:
#       else
dopo di che ho salvato e lanciato il comando:
Code:
root@gentoo_box:# /etc/init.d/hotplug restart
 * Stopping USB and PCI hotplugging...                  [ ok ]
 * Starting USB and PCI hotplugging...                  [ ok ]
e nn da' + errori...bah...ho avuto fortuna eh? :wink:
x ora questo workaround mi soddisfa, anche x' cmq funziona tutto.
:lol:
Bye!
Back to top
View user's profile Send private message
motaboy
Retired Dev
Retired Dev


Joined: 15 Dec 2003
Posts: 1483

PostPosted: Wed Jan 14, 2004 1:30 pm    Post subject: Reply with quote

Ho provato a fare l'unmerge e a causa dela protezione di /etc i file sono rimasti, così li ho cancellati a mano, ho riemerso (ha dovuto cancellare le cartelle temporanee di hotplug in/var/tmp/portage ma credo perchè ho messo in make.conf la flag che non le cancella automaticamente...) e poi ho riemerso e sembra funzionare.

Per il fatto che a te le righe sono spostate mi viene da pensare che facendo etc-update in maniera sbagliato non è stato sostituito tutto lo script ma solo aggiunte delle righe in modo errato che hanno portato ad una rottura della sintassi dello script bash...

se vuoi provare a fare come ho fatto io per vedere se lo script torna identico al mio puoi provare...

Bye!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum