Home | History | Annotate | Download | only in src
      1 #!/bin/sh
      2 # Copyright (c) 2015 The Chromium OS Authors. All rights reserved.
      3 # Use of this source code is governed by a BSD-style license that can be
      4 # found in the LICENSE file.
      5 # args: -m "0 1000 1" -M "0 1000 1" -e
      6 
      7 . "$(dirname "$0")"/common.sh
      8 
      9 # Look in /proc/net/dev so we get even downed devices.
     10 lines=$(wc -l < /proc/net/dev)
     11 
     12 # Inter-|   Receive                                                |  Transmit
     13 #  face |bytes    packets errs drop fifo frame compressed multicast|bytes packets errs drop fifo colls carrier compressed
     14 #    lo:       0       0    0    0    0     0          0         0        0	0    0    0    0     0       0          0
     15 
     16 [ $lines -eq 3 ] || die "network interfaces still here"
     17