1#!/bin/sh 2# Copyright (c) 2013 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: -e 6 7. "$(dirname "$0")"/common.sh 8 9# Look in /proc/net/dev so we get even downed devices. 10lines=$(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