>From 5331c6630d00c0c138ab1c5c0ab0a01d32f21674 Mon Sep 17 00:00:00 2001
From: Samuel Andaya <samuel@andaya.net>
Date: Sun, 30 Sep 2012 02:13:06 +0000
Subject: [PATCH] Add support for "options" in /etc/resolv.conf.

Example

DNS=('8.8.8.8' '8.8.4.4')
DNSOPTIONS=('rotate' 'timeout:1')

Will create the following /etc/resolv.conf

nameserver 8.8.8.8
nameserver 8.8.4.4
options rotate
options timeout:1

Signed-off-by: Samuel Andaya <samuel@andaya.net>
---
 src/connections/ethernet | 3 +++
 1 file changed, 3 insertions(+)
 mode change 100644 => 100755 src/connections/ethernet

diff --git a/src/connections/ethernet b/src/connections/ethernet
old mode 100644
new mode 100755
index 00079fc..849f8a8
--- a/src/connections/ethernet
+++ b/src/connections/ethernet
@@ -218,6 +218,9 @@ ethernet_up() {
         for dns in "${DNS[@]}"; do
             echo "nameserver $dns" >>/etc/resolv.conf
         done
+        for dnsoption in "${DNSOPTIONS[@]}"; do
+            echo "options $dnsoption" >>/etc/resolv.conf
+        done
     fi
 
     return 0
--
1.7.12.1