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.
Josua & Hendy,
I try to use udev script that I found here: blankblondtank. wordpress. com/2009/ 09/03/koneksi- internet- smart-dengan- haier-ce- 100-cdma- di-linux/
http://
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.