Hi all.
I have been given an interesting assignment, as to disable the 3G modem support in Fedora 11.
Through some googling, I have been able to reach the file
/lib/udev/rules.d/77-nm-probe-modem-capabilities.rules, whose contents are below :
Code:
# Only probe known mobile broadband drivers
DRIVERS=="option|sierra|hso|cdc_acm|qcserial", GOTO="probe"
GOTO="nm_modem_probe_end"
LABEL="probe"
# Don't probe new-style beagleboard cdc-acm ports
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0525", GOTO="nm_modem_probe_end"
SUBSYSTEM=="tty", SUBSYSTEMS=="usb", DRIVERS=="?*", ENV{NM_MODEM_DRIVER}="$attr{driver}"
SUBSYSTEM=="tty", SUBSYSTEMS=="usb", ATTRS{bInterfaceNumber}=="?*", ENV{NM_MODEM_USB_INTERFACE_NUMBER}="$attr{bInterfaceNumber}"
SUBSYSTEM=="tty", SUBSYSTEMS=="usb", ATTRS{idVendor}=="?*", ATTRS{idProduct}=="?*", IMPORT{program}="nm-modem-probe --vid 0x$attr{idVendor} --pid 0x$attr{idProduct} --usb-interface $env{NM_MODEM_USB_INTERFACE_NUMBER} --driver $env{NM_MODEM_DRIVER} --delay 3000 --export $tempnode", GOTO="nm_modem_probe_end"
LABEL="nm_modem_probe_end"
I have the following queries / dumb questions :-|
1. As the removal of driver itself seems to be the best option, how can I know the driver? That is, how can I extract the value of
$env{NM_MODEM_DRIVER}?
2. I suppose the removal of this driver, will disable modem configuration for any standard (and not just 3G). Is my assumption reasonable?
3. Is there a better method to disable 3G modem support?
Looking forward to a reply.
Regards,
Ajay