diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2011-04-07 16:17:23 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2011-04-07 16:17:23 -0400 |
commit | b510be5cc1539dbdd6fc3d5bfe8afded5e346cbc (patch) | |
tree | 5bf36428ad8cf0d60c6b54d8dd99d27695a794ef /sbin/dhclient-script | |
parent | 1fd807da8a52ac87eb3c13726b6b80f40227e0c9 (diff) | |
download | pfsense-b510be5cc1539dbdd6fc3d5bfe8afded5e346cbc.zip pfsense-b510be5cc1539dbdd6fc3d5bfe8afded5e346cbc.tar.gz |
use same egrep statement for both checks
Diffstat (limited to 'sbin/dhclient-script')
-rwxr-xr-x | sbin/dhclient-script | 2 |
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 |