LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-17-2011, 07:55 AM   #1
ajaygarg
Member
 
Registered: Mar 2010
Location: New Delhi, India
Distribution: Fedora
Posts: 94

Rep: Reputation: 0
Best way to disable 3G modem support in Fedora 11


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
 
Old 10-17-2011, 08:13 AM   #2
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Hello,

For something like this, I would go the trial and error route - If anything, make a backup of that file, then delete it, and see if that would do the trick. That would be my first guess; But, that is how I learn about things; See what happens when you do this and that, etc. As far as getting the contents of NM_MODEM_DRIVER, I would use echo to try to echo the environmental variable, if that what it really is:
Code:
echo $NM_MODEM_DRIVER
Cheers,

Josh
 
Old 10-17-2011, 10:16 PM   #3
ajaygarg
Member
 
Registered: Mar 2010
Location: New Delhi, India
Distribution: Fedora
Posts: 94

Original Poster
Rep: Reputation: 0
Thanks corp769.

I have create a new thread (with a slightly different ticket, but hopefully that should also be a guide to resolving this).
http://www.linuxquestions.org/questi...29#post4501029

Thanks and Regards,
Ajay
 
Old 02-26-2012, 10:51 PM   #4
ajaygarg
Member
 
Registered: Mar 2010
Location: New Delhi, India
Distribution: Fedora
Posts: 94

Original Poster
Rep: Reputation: 0
Well, in my case, I did the following to accomplisy my purpose ::

Code:
sudo chmod 0000 /usr/sbin/modem-manager
as NetworkManager delegates the network-usb operations to "modem-manager" service.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How i can do disable support SMBus for kernel? wertum Linux - General 2 09-14-2010 07:02 PM
Disable esound support in firefox cronos *BSD 0 10-22-2006 10:22 AM
Disable ehci support brain_bucket Ubuntu 2 09-07-2005 07:41 PM
How to disable SMP support in the Kernel? concoran Linux - General 3 10-23-2001 12:42 AM
Recompiling RH 7.1 to disable DMA support - chipset doesn't support properly arby73 Linux - Newbie 0 06-13-2001 10:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration