Ticket #131 (closed defect: fixed)
Opened 20 months ago
Last modified 20 months ago
runscript fails to bring up net.eth0 during startup when using netplug
Reported by: | Matěj Laitl <matej@laitl.cz> | Owned by: | roy |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | rc | Version: | 0.4 |
Keywords: | Cc: | matej@laitl.cz |
Description
Hi Roy,
I've encountered following regression in openrc-0.4.0, steps to reproduce:
- Add net.eth0 to default runlevel
- emerge netplug and enable it to be used by net.eth0 (this is afaik by default)
- boot your system with cable plugged into eth0.
### see that net.eth0 start was not triggered by netplug
- unplug and replug your cable. net.eth0 gets started.
I suspected netplug was to blame, so I edited /etc/netplug.d/netplug to log what it does:
# cat /etc/netplug.d/netplug
<cut>
export IN_BACKGROUND=true
if [ -x "${EXEC}" ]
then
logger -t netplug.d/netplug "Executing ${EXEC} ${ARGS} &> /dev/tty11"
${EXEC} ${ARGS} &> /dev/tty11
<cut>
syslog said:
netplug.d/netplug: Executing /etc/init.d/net.eth0 start &> /dev/tty11
tty11 said:
net.eth0 | *WARNING: net.eth0 will be started when the runlevel has finished
Regards, Matěj.