Thu Nov 22, 2012 08:11
|
ferro: i fixed that by using udev. udev creates a symlink /dev/modem to the most recent device. In the smsd.conf i refer only to /dev/modem. The udev rule in my case is in the file /etc/udev/rules.d/53-persistent-usb-modem.rule:
---------X---------------
ACTION!="add|change", GOTO="modem_rules_end"
SUBSYSTEM=="usb_device", GOTO="modem_rules_real"
SUBSYSTEM=="tty", GOTO="modem_rules_real"
SUBSYSTEM!="usb", GOTO="modem_rules_end"
LABEL="modem_rules_real"
# TTP USB Modem for sending SMS
#
ATTRS{idVendor}=="0aeb", ATTRS{idProduct}=="0040", SYMLINK+="modem", MODE="664", GROUP="dialout"
LABEL="modem_rules_end"
---------X---------------
If you use a different hardware you have to adjust idVendor and idProduct. Run lsusb to see what you have. I run smsd not as root, therefore the group of the real device is adjusted to a group that the running user (smsd) is member of (dialout). The system i refer here to is a debian squeeze.
hope that helps
|