[TriLUG] Problems with Fedora 7 and Hotplug

Roy Vestal rvestal at trilug.org
Tue Dec 4 14:25:04 EST 2007


hmmm....didn't look at dmesg, looked at /var/log/messages


tail -f /var/log/messages shows:

Dec 4 14:19:15 computer-name kernel: usb 4-1: new full speed USB device 
using uhci_hcd and address 35
Dec 4 14:19:16 computer-name kernel: usb 4-1: configuration #1 chosen 
from 1 choice
Dec 4 14:19:16 computer-name kernel: usb0: register 'zaurus' at 
usb-0000:00:1d.3-1, Sharp Zaurus SL-5x00, 1a:d9:c4:d3:be:56

dmesg shows:
usb0: unregister 'zaurus' usb-0000:00:1d.3-1, Sharp Zaurus SL-5x00
usb 4-1: new full speed USB device using uhci_hcd and address 34
usb 4-1: configuration #1 chosen from 1 choice
usb0: register 'zaurus' at usb-0000:00:1d.3-1, Sharp Zaurus SL-5x00, 
1a:d9:c4:d3:be:56

but hotplug is not starting usbnet.

I verified the script:
[root at computer-name ~]# ifconfig | grep usb0 | wc -l
0

If I manually run the script /etc/hotplug/usb/usbnet:

[root at computer-name ~]# tail -f /var/log/messages
Dec 4 14:22:23 computer-name avahi-daemon[2417]: Joining mDNS multicast 
group on
interface usb0.IPv4 with address 192.168.129.1.
Dec 4 14:22:23 computer-name avahi-daemon[2417]: New relevant interface 
usb0.IPv4
for mDNS.
Dec 4 14:22:23 computer-name avahi-daemon[2417]: Registering new address 
record f
or 192.168.129.1 on usb0.IPv4.
Dec 4 14:22:23 computer-name avahi-daemon[2417]: Withdrawing address 
record for 1
92.168.129.1 on usb0.
Dec 4 14:22:23 computer-name avahi-daemon[2417]: Leaving mDNS multicast 
group on
interface usb0.IPv4 with address 192.168.129.1.
Dec 4 14:22:23 computer-name avahi-daemon[2417]: Interface usb0.IPv4 no 
longer re
levant for mDNS.
Dec 4 14:22:23 computer-name avahi-daemon[2417]: Joining mDNS multicast 
group on
interface usb0.IPv4 with address 192.168.129.1.
Dec 4 14:22:23 computer-name avahi-daemon[2417]: New relevant interface 
usb0.IPv4
for mDNS.
Dec 4 14:22:23 computer-name avahi-daemon[2417]: Registering new address 
record f
or 192.168.129.1 on usb0.IPv4.
Dec 4 14:22:23 computer-name avahi-daemon[2417]: Withdrawing address 
record for 1
92.168.129.1 on usb0.
Dec 4 14:22:23 computer-name avahi-daemon[2417]: Leaving mDNS multicast 
group on
interface usb0.IPv4 with address 192.168.129.1.
Dec 4 14:22:23 computer-name avahi-daemon[2417]: Interface usb0.IPv4 no 
longer re
levant for mDNS.
Dec 4 14:22:23 computer-name avahi-daemon[2417]: Joining mDNS multicast 
group on
interface usb0.IPv4 with address 192.168.129.1.
Dec 4 14:22:23 computer-name avahi-daemon[2417]: New relevant interface 
usb0.IPv4
for mDNS.
Dec 4 14:22:23 computer-name avahi-daemon[2417]: Registering new address 
record f
or 192.168.129.1 on usb0.IPv4.
Dec 4 14:22:24 computer-name avahi-daemon[2417]: Joining mDNS multicast 
group on
interface usb0.IPv6 with address fe80::18d9:c4ff:fed3:be56.
Dec 4 14:22:24 computer-name avahi-daemon[2417]: New relevant interface 
usb0.IPv6
for mDNS.
Dec 4 14:22:24 computer-name avahi-daemon[2417]: Registering new address 
record f
or fe80::18d9:c4ff:fed3:be56 on usb0.*.

/me scratches head...

David A. Cafaro wrote:
> Question:
>
> If you watch dmesg when you plug or unplug the zaurus, do you see  
> anything (device registered, anything) or is dmesg silent.
>
> -David
>
>
> On Dec 4, 2007, at 12:29 PM, Roy Vestal wrote:
>
>   
>> Ok, I've been working on getting this stupid zaurus syncing. I have it
>> "mostly" automated. I followed a few of the how tos and and setup
>> /etc/hotplug/usb/usbnet as follows:
>>
>> ---------------<snip>---------------
>>
>> #!/bin/bash
>> typeset -i num
>> num=`ifconfig | grep usb0 | wc -l`
>> if [ $num -eq 0 ] ; then
>>         ifconfig usb0 192.168.129.1 netmask 255.255.255.255 up
>>         route add -host 192.168.129.201 usb0
>> fi
>> iptables  -t nat -F
>> iptables  -t nat -A POSTROUTING -j SNAT -o eth0 --to MY_IP_ADDR
>> (obscured to protect the innocent)
>> echo 1 > /proc/sys/net/ipv4/ip_forward
>> exit 0
>> ---------------<snip>---------------
>>
>> It doesn't hotplug. If I "sudo sh /etc/hotplug/usb/usbnet" then it  
>> works
>> fine, QTopia Desktop works, ssh, etc. When I remove and replace, i  
>> have
>> to manually run it. What am I missing. I've done the chmod +x on the
>> file too.
>> -- 
>> TriLUG mailing list        : http://www.trilug.org/mailman/listinfo/ 
>> trilug
>> TriLUG Organizational FAQ  : http://trilug.org/faq/
>> TriLUG Member Services FAQ : http://members.trilug.org/services_faq/
>>
>>     
>
>   




More information about the TriLUG mailing list