summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2011-04-07 16:17:23 -0400
committerScott Ullrich <sullrich@pfsense.org>2011-04-07 16:17:23 -0400
commitb510be5cc1539dbdd6fc3d5bfe8afded5e346cbc (patch)
tree5bf36428ad8cf0d60c6b54d8dd99d27695a794ef
parent1fd807da8a52ac87eb3c13726b6b80f40227e0c9 (diff)
downloadpfsense-b510be5cc1539dbdd6fc3d5bfe8afded5e346cbc.zip
pfsense-b510be5cc1539dbdd6fc3d5bfe8afded5e346cbc.tar.gz
use same egrep statement for both checks
-rwxr-xr-xsbin/dhclient-script2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/dhclient-script b/sbin/dhclient-script
index a41447d..ccbde7d 100755
--- a/sbin/dhclient-script
+++ b/sbin/dhclient-script
@@ -239,7 +239,7 @@ add_new_resolv_conf() {
echo '$nameserver_sanitized' >>/var/etc/nameserver_$interface
$ROUTE add $nameserver_sanitized -iface $interface
done
- echo $new_domain_name | /usr/bin/egrep -o "[0-9\.]+" >/var/etc/searchdomain_$interface
+ echo $new_domain_name | /usr/bin/egrep -o '([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+|[0-9a-f]+:)' >/var/etc/searchdomain_$interface
fi
return 0
OpenPOWER on IntegriCloud