ALT Linux Bugzilla
– Attachment 967 Details for
Bug 7224
зависимость от /sbin/ifconfig
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
ifconfig->ip patch
pcmcia-cs-3.2.8-alt-net-tools.patch (text/plain), 717 bytes, created by
Denis Ovsienko
on 2005-07-04 12:32:11 MSD
(
hide
)
Description:
ifconfig->ip patch
Filename:
MIME Type:
Creator:
Denis Ovsienko
Created:
2005-07-04 12:32:11 MSD
Size:
717 bytes
patch
obsolete
>--- network.orig 2005-06-27 16:13:13 +0400 >+++ network 2005-07-04 12:37:47 +0400 >@@ -29,7 +29,7 @@ > if [ -r "$NAMEFILE" -a "$ACTION" != "start" ] ; then > DEVICE=`cat $NAMEFILE` > fi >-HWADDR=`/sbin/ifconfig $DEVICE | sed -ne 's/.*\(..:..:..:..:..:..\).*/\1/p'` >+HWADDR=`/sbin/ip -o link show dev $DEVICE | sed 's/.*link\///' | cut -d' ' -f2 | tr 'a-f' 'A-F'` > > # Load site-specific settings > ADDRESS="$SCHEME,$SOCKET,$INSTANCE,$HWADDR" >@@ -62,7 +62,7 @@ > > 'check') > is_true $NO_CHECK && exit 0 >- /sbin/ifconfig $DEVICE | grep -q RUNNING || exit 0 >+ /sbin/ip -o link show dev $DEVICE 2>/dev/null | cut -d' ' -f3 | grep -qs '[<,]UP[,>]' || exit 0 > > # Check for any in-use NFS mounts > nfscheck ()
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 7224
: 967