diff options
author | Jim Pryor <profjim@jimpryor.net> | 2009-08-11 18:49:08 +0200 |
---|---|---|
committer | James Rayner <james@archlinux.org> | 2009-09-07 12:04:04 +0200 |
commit | 6b0c686613a26541ce3164d9e995f639ef3a9b9f (patch) | |
tree | 67b2d4e8d1fa500752be8c657491afe2bb9db14b /src/connections/ethernet-iproute | |
parent | 6e369d4a1e082be88c3e8132477452c2dda3cf0e (diff) | |
download | netctl-6b0c686613a26541ce3164d9e995f639ef3a9b9f.tar.gz netctl-6b0c686613a26541ce3164d9e995f639ef3a9b9f.tar.xz |
Comments, more harmless bits
Signed-off-by: Jim Pryor <profjim@jimpryor.net>
Diffstat (limited to 'src/connections/ethernet-iproute')
-rw-r--r-- | src/connections/ethernet-iproute | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/connections/ethernet-iproute b/src/connections/ethernet-iproute index eedda15..f0ac995 100644 --- a/src/connections/ethernet-iproute +++ b/src/connections/ethernet-iproute @@ -102,11 +102,9 @@ ethernet_up() { [[ -n "$DOMAIN" ]] && echo "domain $DOMAIN" >>/etc/resolv.conf [[ -n "$SEARCH" ]] && echo "search $SEARCH" >>/etc/resolv.conf - if [[ -n "$DNS" ]]; then - for dns in "${DNS[@]}"; do - echo "nameserver $dns" >>/etc/resolv.conf - done - fi + for dns in "${DNS[@]}"; do + echo "nameserver $dns" >>/etc/resolv.conf + done fi return 0 } |