ALT Linux Bugzilla
– Attachment 7495 Details for
Bug 34812
e1000e, Intel 82574L, 4.9.61-std-def: периодический link down/up
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
fixeep
fixeep-82574_83.sh (text/plain), 1.06 KB, created by
Sergey Bolshakov
on 2018-04-15 20:56:26 MSK
(
hide
)
Description:
fixeep
Filename:
MIME Type:
Creator:
Sergey Bolshakov
Created:
2018-04-15 20:56:26 MSK
Size:
1.06 KB
patch
obsolete
>#!/bin/bash > >if [ -z "$1" ]; then > echo "Usage: $0 \<interface\>" > echo " i.e. $0 eth0" > exit 1 >fi > >if ! ifconfig $1 > /dev/null; then > exit 1 >fi > >bdf=$(ethtool -i $1 | grep "bus-info:" | awk '{print $2}') >dev=$(lspci -s $bdf -x | grep "00: 86 80" | awk '{print "0x"$5$4$3$2}') > >case $dev in > 0x10d38086) > echo "$1: is a \"82574L Gigabit Network Connection\"" > ;; > 0x10f68086) > echo "$1: is a \"82574L Gigabit Network Connection\"" > ;; > 0x150c8086) > echo "$1: is a \"82583V Gigabit Network Connection\"" > ;; > *) > echo "No appropriate hardware found for this fixup" > exit 1 > ;; >esac > >echo "This fixup is applicable to your hardware" > >var=$(ethtool -e $1 | grep 0x0010 | awk '{print $16}') >new=$(echo ${var:0:1}`echo ${var:1} | tr '014589bc' '2367abef'`) > >if [ ${var:0:1}${var:1} == $new ]; then > echo "Your eeprom is up to date, no changes were made" > exit 2 >fi > >echo "executing command: ethtool -E $1 magic $dev offset 0x1e value 0x$new" >ethtool -E $1 magic $dev offset 0x1e value 0x$new > >echo "Change made. You *MUST* reboot your machine before changes take effect!"
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 Raw
Actions:
View
Attachments on
bug 34812
: 7495