LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 803|回复: 9

net.eth0 net.wlan0 如何不要自动启动?

[复制链接]
发表于 2011-4-13 22:58:59 | 显示全部楼层 |阅读模式
hi,各位

在网上查了很久,有的说改 hotplug, 有的说改 coldplug, 还有的说改 net_check="lo"

经试验,都没有成功。
每次启动都会在 eth0 和 wlan0 卡很久( wait 8 second for carrier 好像是这样的)

怎么不自动启动呢?

谢谢各位了先。
发表于 2011-4-13 23:28:48 | 显示全部楼层
直接删掉。。。
回复 支持 反对

使用道具 举报

发表于 2011-4-13 23:31:39 | 显示全部楼层
rc-update del net.eth0
rc-update del net.wlan0

不需要的话,你可以删掉 /etc/init.d/net.wlan0和net.eth0

另外,有些服务可能会依赖它从而自动启动,比如wicd
回复 支持 反对

使用道具 举报

发表于 2011-4-14 16:41:53 | 显示全部楼层
试试 config_eth0="null" ?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2011-4-16 13:47:42 | 显示全部楼层
Post by druggo;2135030
试试 config_eth0="null" ?


这个管用

我发现,直接设置 ip 地址也就好了,是 dhcpcd 花的时间太多了
回复 支持 反对

使用道具 举报

发表于 2011-4-16 17:17:33 | 显示全部楼层
http://en.gentoo-wiki.com/wiki/Wicd

这里面有介绍如何不让自动启动的
回复 支持 反对

使用道具 举报

发表于 2011-4-16 20:27:09 | 显示全部楼层
modify /etc/conf.d/rc
RC_PLUG_SERVICES=
RC_STRICT_CHECKING=
回复 支持 反对

使用道具 举报

发表于 2011-4-17 16:16:05 | 显示全部楼层
我按照手册上的配置,删掉net.eth0,net.wlan0,安装networkmanager,开机时自动连上有线和无线网络。
回复 支持 反对

使用道具 举报

发表于 2011-4-18 13:13:04 | 显示全部楼层
edit /etc/rc.conf if you use openrc.
change hotplug line to sth like below
hotplug = "!net.eth* !net.wlan*"
rc-update del net.eth0
rc-update del net.wlan0
rc-update add wicd
emerge wicd-client-kde.
configure your wicd setting in kde control center.

Be noted: wicd needs python2. if your system default python is 3.1, change /usr/sbin/wicd file to use python2 to launch wicd service.
回复 支持 反对

使用道具 举报

发表于 2011-5-5 21:46:04 | 显示全部楼层
Refer to http://us.generation-nt.com/answ ... help-201755802.html

This is my config,it works ok,net.eth0 will not be auto started,here I need net.wlan0

localhost ~ # grep net.wlan /etc/conf.d/rc
# Example - RC_PLUG_SERVICES="net.wlan !net.*"
# This allows net.wlan and any service not matching net.* to be plugged.
RC_PLUG_SERVICES="net.wlan0 !net.*"
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表