ALT Linux Bugzilla
– Attachment 3388 Details for
Bug 11786
Не поднимаются некоторые ethernet интерфейсы при старте сети
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
try to guess eth iface name during create
etcnet-guess-ethname-during-create.diff (text/plain), 749 bytes, created by
Sergey Bolshakov
on 2009-03-24 16:31:27 MSK
(
hide
)
Description:
try to guess eth iface name during create
Filename:
MIME Type:
Creator:
Sergey Bolshakov
Created:
2009-03-24 16:31:27 MSK
Size:
749 bytes
patch
obsolete
>diff --git a/etc/net/scripts/create-eth b/etc/net/scripts/create-eth >index 4554c0e..6fdfa2c 100755 >--- a/etc/net/scripts/create-eth >+++ b/etc/net/scripts/create-eth >@@ -8,6 +8,24 @@ if [ -n "$MODULE" ]; then > for oneword in $MODULE; do > $MODPROBE $oneword > done >-else >+fi >+ >+if $IP li sh dev $NAME 2>/dev/null; then >+ # iface $NAME at least exists > $IP link set dev $NAME down >+ exit 0 > fi >+ >+# nope, try to guess from iftab >+if profiled_filename IFTAB_FILE "$IFTAB"; then >+ while read junk junk junk junk from junk to; do >+ if [ "$NAME" = "${to%.*}" ]; then >+ # iface will be renamed to $NAME later >+ $IP link set dev $from down >+ exit 0 >+ fi >+ done <<< "$($IFRENAME -c "$IFTAB_FILE" -D 2>&1)" >+fi >+ >+# still nothing, bail out >+exit 1
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 11786
: 3388