summaryrefslogtreecommitdiffstats
path: root/src/connections/ethernet-iproute
diff options
context:
space:
mode:
authorJames Rayner <james@archlinux.org>2009-02-16 11:09:06 +0100
committerJames Rayner <james@archlinux.org>2009-02-16 11:09:06 +0100
commit371cd06f36328ba0ddb75fe64102e8fc232a7fd3 (patch)
tree1584bb6d4eafe2cd2ee257d9c9b1d3ef1cc67a58 /src/connections/ethernet-iproute
parentcfcf836b94c5f3b520f0022942b1932c566eefdb (diff)
downloadnetctl-371cd06f36328ba0ddb75fe64102e8fc232a7fd3.tar.gz
netctl-371cd06f36328ba0ddb75fe64102e8fc232a7fd3.tar.xz
various fixes, and new quirk 'noacheck'
Diffstat (limited to 'src/connections/ethernet-iproute')
-rw-r--r--src/connections/ethernet-iproute4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/connections/ethernet-iproute b/src/connections/ethernet-iproute
index a491419..a960e1d 100644
--- a/src/connections/ethernet-iproute
+++ b/src/connections/ethernet-iproute
@@ -46,7 +46,6 @@ ethernet_up() {
if ! dhcpcd -qL -t ${DHCP_TIMEOUT:-10} $DHCP_OPTIONS $INTERFACE; then
error "DHCP IP lease attempt failed"
- return 1
fi
;;
static)
@@ -58,13 +57,11 @@ ethernet_up() {
if [[ -n "$GATEWAY" ]]; then
if ! ip route add default via $GATEWAY; then
error "Adding gateway failed"
- return 1
fi
fi
;;
*)
error "Profile error: IP must be either 'dhcp' or 'static'"
- return 1
;;
esac
@@ -81,7 +78,6 @@ ethernet_up() {
if [[ -n "$HOSTNAME" ]]; then
if ! hostname $HOSTNAME; then
error "Cannot set hostname"
- return 1
fi
fi