After some googling, I solved my own question:
I added a rule file at /etc/udev/rules.d/80-persistent-modem.rules
Code:
ATTRS{card_id}=="0x0034", ATTRS{manf_id}=="0x0101", SYMLINK+="3commodem"
Testing the result:
udevadm control --reload-rules
udevadm test -a -p $(udevadm info -q path -n /dev/ttyS1)
The variable is based on the following command result:
udevadm info --name=/dev/ttyS1 --attribute-walk
Code:
Udevadm info starts with the device specified by the devpath and then
walks up the chain of parent devices. It prints for every device
found, all possible attributes in the udev rules key format.
A rule to match, can be composed by the attributes of the device
and the attributes from one single parent device.
looking at device '/devices/pci0000:00/0000:00:1e.0/0000:02:00.0/0.0/tty/ttyS1':
KERNEL=="ttyS1"
SUBSYSTEM=="tty"
DRIVER==""
looking at parent device '/devices/pci0000:00/0000:00:1e.0/0000:02:00.0/0.0':
KERNELS=="0.0"
SUBSYSTEMS=="pcmcia"
DRIVERS=="serial_cs"
ATTRS{function}=="0x00"
ATTRS{pm_state}=="on"
ATTRS{func_id}=="0x02"
ATTRS{manf_id}=="0x0101"
ATTRS{card_id}=="0x0034"
ATTRS{prod_id1}=="3Com"
ATTRS{prod_id2}=="3CXM/3CCM556"
ATTRS{prod_id3}=="Megahertz 56K Cell/Telephony Modem"
looking at parent device '/devices/pci0000:00/0000:00:1e.0/0000:02:00.0':
KERNELS=="0000:02:00.0"
SUBSYSTEMS=="pci"
DRIVERS=="yenta_cardbus"
ATTRS{vendor}=="0x1180"
ATTRS{device}=="0x0476"
ATTRS{subsystem_vendor}=="0x1014"
ATTRS{subsystem_device}=="0x0532"
ATTRS{class}=="0x060700"
ATTRS{irq}=="11"
ATTRS{local_cpus}=="1"
ATTRS{local_cpulist}=="0"
ATTRS{dma_mask_bits}=="32"
ATTRS{consistent_dma_mask_bits}=="32"
ATTRS{enable}=="2"
ATTRS{broken_parity_status}=="0"
ATTRS{msi_bus}=="1"
looking at parent device '/devices/pci0000:00/0000:00:1e.0':
KERNELS=="0000:00:1e.0"
SUBSYSTEMS=="pci"
DRIVERS==""
ATTRS{vendor}=="0x8086"
ATTRS{device}=="0x2448"
ATTRS{subsystem_vendor}=="0x0000"
ATTRS{subsystem_device}=="0x0000"
ATTRS{class}=="0x060400"
ATTRS{irq}=="0"
ATTRS{local_cpus}=="1"
ATTRS{local_cpulist}=="0"
ATTRS{dma_mask_bits}=="32"
ATTRS{consistent_dma_mask_bits}=="32"
ATTRS{enable}=="1"
ATTRS{broken_parity_status}=="0"
ATTRS{msi_bus}=="1"
looking at parent device '/devices/pci0000:00':
KERNELS=="pci0000:00"
SUBSYSTEMS==""
DRIVERS==""
reference:
http://wiki.debian.org/udev