summaryrefslogtreecommitdiffstats
path: root/src/connections/ethernet
diff options
context:
space:
mode:
authorJouke Witteveen <j.witteveen@gmail.com>2012-06-24 23:52:26 +0200
committerJouke Witteveen <j.witteveen@gmail.com>2012-06-24 23:52:26 +0200
commit2d949d5ab65851bc8b6610dd4288eb8737aa9f86 (patch)
tree5a9334901ba8ff675fa3ac70d5350c6b7eaec5f5 /src/connections/ethernet
parent90939503b37dcb1dc17e40b872862bafff47dbbb (diff)
downloadnetctl-2d949d5ab65851bc8b6610dd4288eb8737aa9f86.tar.gz
netctl-2d949d5ab65851bc8b6610dd4288eb8737aa9f86.tar.xz
Minor changes
$STATE_DIR/last_profile was unused and functionality one could want from it will soon be provided by netcfg-daemon.
Diffstat (limited to 'src/connections/ethernet')
-rw-r--r--src/connections/ethernet2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/connections/ethernet b/src/connections/ethernet
index 24e92d5..834b333 100644
--- a/src/connections/ethernet
+++ b/src/connections/ethernet
@@ -34,7 +34,7 @@ ethernet_up() {
if ! checkyesno "${SKIPNOCARRIER:-no}"; then
# Some cards are plain slow to come up. Don't fail immediately.
- if ! timeout_wait "${CARRIER_TIMEOUT:-5}" '! ip link show dev "$INTERFACE" | fgrep -q "NO-CARRIER"'; then
+ if ! timeout_wait "${CARRIER_TIMEOUT:-5}" '(( $(< "/sys/class/net/$INTERFACE/carrier") ))'; then
report_iproute "No connection"
fi
fi