Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 47056 Details for
Bug 56943
hotplug can cause net scripts to start in wrong order
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
modifies /etc/hotplug/net.agent to keep network interfaces from being started in non-network runlevels
patch (text/plain), 1.36 KB, created by
Matt Drew (RETIRED)
on 2004-12-28 13:28:04 UTC
(
hide
)
Description:
modifies /etc/hotplug/net.agent to keep network interfaces from being started in non-network runlevels
Filename:
MIME Type:
Creator:
Matt Drew (RETIRED)
Created:
2004-12-28 13:28:04 UTC
Size:
1.36 KB
patch
obsolete
>--- net.agent.orig 2004-12-27 22:37:43.000000000 +0000 >+++ net.agent 2004-12-28 20:59:47.000000000 +0000 >@@ -70,10 +70,27 @@ > > # Gentoo > elif [ -f /etc/gentoo-release ]; then >- script=/etc/init.d/net.$INTERFACE >+ # block interface startup in system/admin runlevels >+ if [ -x /sbin/runlevel ]; then >+ RLEVEL=$(/sbin/runlevel) >+ case "$RLEVEL" in >+ unknown|sysinit|boot|nonetwork|single|??[Ss0126]) >+ mesg "Refusing to activate $INTERFACE: This appears to be a boot, system, or administrative runlevel, it's not safe." >+ exit 0 >+ ;; >+ *) >+ mesg "setting $INTERFACE to activate." >+ script=/etc/init.d/net.$INTERFACE >+ ;; >+ esac >+ else >+ # fall back on the old way of doing things >+ script=/etc/init.d/net.$INTERFACE >+ fi >+ > if [ -x "$script" ]; then >- debug_mesg invoke \"$script\" --quiet start >- exec "$script" --quiet start >+ debug_mesg invoke \"$script\" start >+ exec "$script" start > fi > else > mesg "how do I bring interfaces up on this distro?" >@@ -96,8 +113,8 @@ > if [ -f /etc/gentoo-release ]; then > script=/etc/init.d/net.$INTERFACE > if [ -x "$script" ]; then >- debug_mesg invoke "$script" --quiet stop >- exec "$script" --quiet stop >+ debug_mesg invoke "$script" stop >+ exec "$script" stop > fi > fi > ;;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 56943
:
42637
| 47056