Il dom, set 28, 2014 at 11:35:42 +0530, Ritesh Raj Sarraf scrisse:
> Once your machine has booted up, you can then do a restart of the laptop
> mode service. It will print all the debug logs onto the console. You can
> then copy paste the logs

Only the last lines (shift+pageup can't show more):


                        # Handle Speed Throttling
                        ret=`$ETHTOOL -s $DEVICE speed $MAX_SPEED 2>&1`
                        exit_status=$?;
                        log "VERBOSE" "$ret";
                        if [ $exit_status -eq 0 ]; then
                                log "VERBOSE" "Restored speed to $MAX_SPEED 
Mbit for $DEVICE"
                        else
                                log "VERBOSE" "Could not restore speed for 
$DEVICE"
                        fi
                fi

                # Shut down interface
                if [ x$DISABLE_ETHERNET = x1 ]; then
                        if $IPTOOL link show $DEVICE | grep -q NO-CARRIER; then
                                log "VERBOSE" "ethernet: Disabling ethernet 
device $DEVICE"
                                $IPTOOL link set dev $DEVICE down
                        else
                                log "VERBOSE" "ethernet: Not disabling ethernet 
device $DEVICE with active carrier."
                        fi
                elif [ x$DISABLE_ETHERNET = x0 ]; then
                        $IPTOOL link set dev $DEVICE up
                        log "VERBOSE" "ethernet: Re-enabling ethernet device 
$DEVICE"
                fi

        done
else
        log "VERBOSE" "Ethernet module is disabled."
fi
++ '[' x1 = x1 ']'
++ '[' -x /sbin/ethtool ']'
++ ETHTOOL=/sbin/ethtool
++ '[' -x /sbin/mii-tool ']'
++ MIITOOL=/sbin/mii-tool
++ '[' -x /bin/ip ']'
++ IPTOOL=/bin/ip
++ '[' 1 -eq 1 ']'
++ '[' 0 -eq 1 ']'
++ THROTTLE_ETHERNET=0
++ '[' x0 = x1 ']'
++ DISABLE_ETHERNET=2
++ for DEVICE in '$ETHERNET_DEVICES'
++ log VERBOSE 'ethernet: eth0'
++ '[' x1 = x1 ']'
++ '[' -x /usr/bin/logger -a VERBOSE '!=' STATUS ']'
++ '[' VERBOSE = MSG ']'
++ '[' VERBOSE = ERR ']'
++ '[' VERBOSE = VERBOSE ']'
++ '[' x0 = x1 ']'
++ '[' VERBOSE = VERBOSE ']'
++ '[' 1 = 0 ']'
++ '[' x1 = x1 ']'

$ETHTOOL -s $DEVICE wol d 2>&1
+++ /sbin/ethtool -s eth0 wol d
++ ret=
++ exit_status=0
++ log VERBOSE ''
++ '[' x1 = x1 ']'
++ '[' -x /usr/bin/logger -a VERBOSE '!=' STATUS ']'
++ '[' VERBOSE = MSG ']'
++ '[' VERBOSE = ERR ']'
++ '[' VERBOSE = VERBOSE ']'
++ '[' x0 = x1 ']'
++ '[' VERBOSE = VERBOSE ']'
++ '[' 1 = 0 ']'
++ '[' 0 -eq 0 ']'
++ log VERBOSE 'Enabled wakeup-on-LAN for eth0'
++ '[' x1 = x1 ']'
++ '[' -x /usr/bin/logger -a VERBOSE '!=' STATUS ']'
++ '[' VERBOSE = MSG ']'
++ '[' VERBOSE = ERR ']'
++ '[' VERBOSE = VERBOSE ']'
++ '[' x0 = x1 ']'
++ '[' VERBOSE = VERBOSE ']'
++ '[' 1 = 0 ']'
$MIITOOL -v $DEVICE 2>/dev/null | grep capabilities | tr ' ' '\n' |             
        sort -n | sed -ne '/^1.*/p' | cut -d "b" -f1
+++ cut -d b -f1
+++ sed -ne '/^1.*/p'
+++ /sbin/mii-tool -v eth0
+++ sort -n
+++ tr ' ' '\n'
+++ grep capabilities
++ speed='10
10
100
100
1000
1000'
++ '[' -z '10
10
100
100
1000
1000' ']'
++ max_s=0
++ min_s=100000
++ for s in '$speed'
++ '[' 10 -gt 0 ']'
++ max_s=10
++ '[' 10 -lt 100000 ']'
++ min_s=10
++ for s in '$speed'
+++ sed -ne '/^1.*/p'
+++ /sbin/mii-tool -v eth0
+++ grep capabilities
+++ sort -n
+++ cut -d b -f1
++ speed='10
10
100
100
1000
1000'
++ '[' -z '10
10
100
100
1000
1000' ']'
++ max_s=0
++ min_s=100000
++ for s in '$speed'
++ '[' 10 -gt 0 ']'
++ max_s=10
++ '[' 10 -lt 100000 ']'
++ min_s=10
++ for s in '$speed'
++ '[' 10 -gt 10 ']'
++ '[' 10 -lt 10 ']'
++ for s in '$speed'
++ '[' 100 -gt 10 ']'
++ max_s=100
++ '[' 100 -lt 10 ']'
++ for s in '$speed'
++ '[' 100 -gt 100 ']'
++ '[' 100 -lt 10 ']'
++ for s in '$speed'
++ '[' 1000 -gt 100 ']'
++ max_s=1000
++ '[' 1000 -lt 10 ']'
++ for s in '$speed'
++ '[' 1000 -gt 1000 ']'
++ '[' 1000 -lt 10 ']'
++ MAX_SPEED=1000
++ case "$THROTTLE_SPEED" in
++ THROTTLE_SPEED=10
++ '[' x0 = x1 ']'
$ETHTOOL -s $DEVICE speed $MAX_SPEED 2>&1
+++ /sbin/ethtool -s eth0 speed 1000
++ ret='Cannot advertise speed 1000'
++ exit_status=0
++ log VERBOSE 'Cannot advertise speed 1000'
++ '[' 10 -gt 10 ']'
++ '[' 10 -lt 10 ']'
++ for s in '$speed'
++ '[' 100 -gt 10 ']'
++ max_s=100
++ '[' 100 -lt 10 ']'
++ for s in '$speed'
++ '[' 100 -gt 100 ']'
++ '[' 100 -lt 10 ']'
++ for s in '$speed'
++ '[' 1000 -gt 100 ']'
++ max_s=1000
++ '[' 1000 -lt 10 ']'
++ for s in '$speed'
++ '[' 1000 -gt 1000 ']'
++ '[' 1000 -lt 10 ']'
++ MAX_SPEED=1000
++ case "$THROTTLE_SPEED" in
++ THROTTLE_SPEED=10
++ '[' x0 = x1 ']'
$ETHTOOL -s $DEVICE speed $MAX_SPEED 2>&1
+++ /sbin/ethtool -s eth0 speed 1000
++ ret='Cannot advertise speed 1000'
++ exit_status=0
++ log VERBOSE 'Cannot advertise speed 1000'
++ '[' x1 = x1 ']'
++ '[' -x /usr/bin/logger -a VERBOSE '!=' STATUS ']'
++ '[' VERBOSE = MSG ']'
++ '[' VERBOSE = ERR ']'
++ '[' VERBOSE = VERBOSE ']'
++ '[' x0 = x1 ']'
++ '[' VERBOSE = VERBOSE ']'
++ '[' 1 = 0 ']'
++ '[' 0 -eq 0 ']'
++ log VERBOSE 'Restored speed to 1000 Mbit for eth0'
++ '[' x1 = x1 ']'
++ '[' -x /usr/bin/logger -a VERBOSE '!=' STATUS ']'
++ '[' VERBOSE = MSG ']'
++ '[' VERBOSE = ERR ']'
++ '[' VERBOSE = VERBOSE ']'
++ '[' x0 = x1 ']'
++ '[' VERBOSE = VERBOSE ']'
++ '[' 1 = 0 ']'
++ '[' x2 = x1 ']'
++ '[' x2 = x0 ']'


I hope this helps you.

Thanks
-- 
Stefano Callegari <ste...@infinito.it>


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to