summaryrefslogtreecommitdiffstats
path: root/src/connections/ethernet
diff options
context:
space:
mode:
authorJouke Witteveen <j.witteveen@gmail.com>2012-10-12 15:09:08 +0200
committerJouke Witteveen <j.witteveen@gmail.com>2012-10-12 15:09:08 +0200
commitba2128f0233c04aea1f5adc425938f78bdd7540e (patch)
treeb7c8828b736f02fd4c3c2a07ddd58902cd264d7e /src/connections/ethernet
parente06f4c789a2f53401f22d39ed1180967adbb6271 (diff)
downloadnetctl-ba2128f0233c04aea1f5adc425938f78bdd7540e.tar.gz
netctl-ba2128f0233c04aea1f5adc425938f78bdd7540e.tar.xz
Fix whitespace and quoting
Diffstat (limited to 'src/connections/ethernet')
-rw-r--r--src/connections/ethernet6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/connections/ethernet b/src/connections/ethernet
index 00079fc..94c04a1 100644
--- a/src/connections/ethernet
+++ b/src/connections/ethernet
@@ -205,7 +205,7 @@ ethernet_up() {
# Set hostname
if [[ -n "$HOSTNAME" ]]; then
report_debug ethernet_up hostname "$HOSTNAME"
- if ! echo "$HOSTNAME" > /proc/sys/kernel/hostname; then
+ if ! echo "$HOSTNAME" >/proc/sys/kernel/hostname; then
report_iproute "Cannot set hostname to $HOSTNAME"
fi
fi
@@ -213,8 +213,8 @@ ethernet_up() {
# Generate a new resolv.conf
if [[ -n "$DNS" ]]; then
: >/etc/resolv.conf
- [[ -n "$DOMAIN" ]] && echo "domain $DOMAIN" >>/etc/resolv.conf
- [[ -n "$SEARCH" ]] && echo "search $SEARCH" >>/etc/resolv.conf
+ [[ -n "$DOMAIN" ]] && echo "domain $DOMAIN" >>/etc/resolv.conf
+ [[ -n "$SEARCH" ]] && echo "search $SEARCH" >>/etc/resolv.conf
for dns in "${DNS[@]}"; do
echo "nameserver $dns" >>/etc/resolv.conf
done