Hotplugging
Chad Davis
mindphasr at gmail.com
Sun Mar 27 05:16:31 UTC 2005
Greetings,
I have two issues I have been trying to get worked out for awhile and
now am reaching out for any comments or suggestions anyone has to
offer:
1) I have been pulling my hair out trying to get my PDA (Dell Axim
x50v) to sync on connect. I still have to run synce-serial-start every
single time it's connected. I have a /etc/hotplug/synce.usermap and a
/etc/hotplug/usb/synce created. Maybe my scripts are wrong? I have
pasted them at the bottom. Either way I am not getting anything in
/var/log/messages when connecting it. The device ID's are correct.
2) I am using a bluetooth phone and have it bound to /dev/rfcomm0 by
using rfcomm. How can I get this to run at startup rather than doing
it everytime I boot manually? Not exactly 100% familiar with the
ubuntu-way to do startup stuff.
Anything is appreciated...
/etc/hotplug/usb/synce:
#!/bin/bash
export time=`date +"%b %d %X"`
export uname=`uname -n`
echo "$time $uname $0: iPAQ added" >> /var/log/synce
synce-serial-abort >> /dev/null
synce-serial-start >> /var/log/synce
:> $REMOVER
echo "export time=\`date +\"%b %d %X\"\`" >> $REMOVER
echo "export uname=\`uname -n\`" >> $REMOVER
echo "echo \"\$time \$uname $0: iPAQ removed\" >> /var/log/synce" >> $REMOVER
echo "sleep 15 >> /var/log/synce" >> $REMOVER
echo "synce-serial-abort >> /var/log/synce" >> $REMOVER
chmod +x $REMOVER
/etc/hotplug/synce.usermap:
synce 0x0003 0x413x 0x4004 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00
Regards
--
Chad Davis
cdavis at failedsecurity.com
More information about the ubuntu-users
mailing list