Comment 11 for bug 490068

Revision history for this message
Donny Kurnia (donnykurnia) wrote :

Josua & Hendy,

I try to use udev script that I found here:
http://blankblondtank.wordpress.com/2009/09/03/koneksi-internet-smart-dengan-haier-ce-100-cdma-di-linux/

SYSFS{idVendor}=="201e", SYSFS{idProduct}=="2009", RUN+="/usr/bin/eject %k"

But when I have this rules in the /etc/udev/rules.d/93-haier.rules files, when I connect the modem to USB port, I still got it detected as mass storage device. When I try to eject /dev/sr1, I got error that /dev/sr1 does not exist.

So I just remove the file /etc/udev/rules.d/93-haier.rules, then create a bash script that will do:
eject /dev/sr1
pause
modprobe
pause
wvdial

At least, this work well in my Karmic Koala. I compiled my own option.ko with the patch to recognize haier, but I still need modprobe after eject. Without modprobe, the device /dev/ttyUSB0 is not exist.