~ubuntu-branches/ubuntu/trusty/ifupdown-extra/trusty

« back to all changes in this revision

Viewing changes to if-up-scripts/check-network-cable

  • Committer: Package Import Robot
  • Author(s): Javier Fernández-Sanguino Peña
  • Date: 2011-09-12 22:47:26 UTC
  • Revision ID: package-import@ubuntu.com-20110912224726-kz1o24f48k0xyu96
Tags: 0.21
* Fix argument passing in function (Closes: #641312)
* if-up-scripts/check-network-cable:
  - Do not run the 'ip' tool until we have verified that it is
  available
* debian/source/lintian-overrides: Add overrides for lintian, required
  since debian/changelog is in UTF-8 format but debian/control is not

Show diffs side-by-side

added added

removed removed

Lines of Context:
74
74
 
75
75
check_status_iplink () {
76
76
        local status=0
77
 
        local info="`/sbin/ip link show $IFACE 2>&1 | grep \"$IFACE:\" `"
 
77
        local info=""
78
78
        [ ! -x /sbin/ip ] && return 0
 
79
        info="`/sbin/ip link show $IFACE 2>&1 | grep \"$IFACE:\" `"
79
80
        if echo $info | grep -q "NO-CARRIER" ||
80
81
           echo $info | grep -q "state DOWN" ||
81
82
           echo $info | grep -q "state LOWERLAYERDOWN"