diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/connections/ethernet | 6 | ||||
-rw-r--r-- | src/connections/openvpn | 4 |
2 files changed, 5 insertions, 5 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 diff --git a/src/connections/openvpn b/src/connections/openvpn index cb0adde..27c8c65 100644 --- a/src/connections/openvpn +++ b/src/connections/openvpn @@ -23,8 +23,8 @@ openvpn_up() { if [[ -n "$DNS" ]]; then [[ -e /etc/resolv.conf ]] && cp /etc/resolv.conf /tmp/openvpn-$1-resolv.conf : >/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 |