diff options
author | Jouke Witteveen <j.witteveen@gmail.com> | 2014-02-25 14:50:28 +0100 |
---|---|---|
committer | Jouke Witteveen <j.witteveen@gmail.com> | 2014-02-25 15:21:03 +0100 |
commit | 33c6ca7f01a36551ca436a96aafd1bf639bcea2f (patch) | |
tree | aff712316fda54b67eed9dadd98cfd74da3f3f49 /src/lib/connections | |
parent | 3dc6d75f5fa4813fe5c998b13582912fffd88159 (diff) | |
download | netctl-33c6ca7f01a36551ca436a96aafd1bf639bcea2f.tar.gz netctl-33c6ca7f01a36551ca436a96aafd1bf639bcea2f.tar.xz |
Code style and output improvements
Now a bit more verbose when useful.
Diffstat (limited to 'src/lib/connections')
-rw-r--r-- | src/lib/connections/bond | 2 | ||||
-rw-r--r-- | src/lib/connections/ethernet | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/connections/bond b/src/lib/connections/bond index af95753..c22fc82 100644 --- a/src/lib/connections/bond +++ b/src/lib/connections/bond @@ -10,7 +10,7 @@ bond_up() { report_error "Interface '$Interface' already exists" return 1 else - ip link add dev "$Interface" type bond + ip link add name "$Interface" type bond fi bring_interface_up "$Interface" diff --git a/src/lib/connections/ethernet b/src/lib/connections/ethernet index dfd0117..3db69a0 100644 --- a/src/lib/connections/ethernet +++ b/src/lib/connections/ethernet @@ -22,7 +22,7 @@ ethernet_up() { if ! is_yes "${SkipNoCarrier:-no}"; then # Some cards are plain slow to come up. Don't fail immediately. if ! timeout_wait "${TimeoutCarrier:-5}" '(( $(< "/sys/class/net/$Interface/carrier") ))'; then - report_error "No connection on interface '$Interface'" + report_error "No connection found on interface '$Interface' (timeout)" bring_interface_down "$Interface" return 1 fi |