请教如何禁用硬件设备
Tofloor
poster avatar
呆了个呆
deepin
2017-08-22 17:36
Author
现在有台电脑上是双无线网卡,想禁用其中一个无线网卡,本来我想简单用 ifconfig xxx down禁用的,奇怪的是过一段时间这网卡又会自己起来,已经反复很多次了,不知道为什么
Reply Favorite View the author
All Replies
avatar
jingle
deepin
2017-08-22 20:00
#1
Reply View the author
avatar
DebuggerX
deepin
2017-08-22 20:39
#2
我机子一个有线两个无线,就直接在控制中心设置开关没发现问题啊,两个无线都没自动打开过
Reply View the author
avatar
kubidexiaogong
deepin
2017-08-22 21:48
#3
试试modproble
Reply View the author
avatar
MeowSprite
deepin
2017-08-22 22:10
#4
ifconfig xxx down 是手动关闭网卡,但是你网络是由系统的网络服务network-manager管理的,所以它可能会重新打开这个网卡。最好的还是用控制中心的手动关闭。
Reply View the author
avatar
jantacy
deepin
2017-08-22 22:10
#5
在/etc/profile.d目录下建立一个你需要自启动的脚本,比如我的self_start.sh,加入/sbin/iw 网卡名 del,保存重启,每次开机的时候会删掉。
ps:可以用whereis iw看这个工具在哪儿
这是我用来删除蓝牙的。。

Reply View the author