Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

A software I use gets confused if there is irda0 (or some other uncommon device) in the ifconfig -a output.

What is the easiest way of preventing that device from getting listed?

I'm looking for an answer that doesn't require removing or disabling device physically or permanently and no rebooting as well.

share|improve this question
add comment

2 Answers

All network interfaces will be listet in ifconfig -a output. To remove one you would need to unload its corresponding kernel module.

But in your case I`d try to use ifrename to make it "look" like a normal interface. But the better approach would be to fix your br0ken software which seems to choke on device names.

share|improve this answer
add comment

To unload it unload the module:

rmmod $(basename $(ls -l /sys/class/net/irda0/device/driver/module |awk '{print $NF}'))
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.