Skip to content

Commit 1fd807d

Browse files
author
Scott Ullrich
committed
Use full path to egrep
1 parent d0cc727 commit 1fd807d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sbin/dhclient-script

+1-1
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ add_new_resolv_conf() {
232232
if [ -n "$new_domain_name_servers" ]; then
233233
/bin/rm -f /var/etc/nameserver_$interface
234234
for nameserver in $new_domain_name_servers; do
235-
nameserver_sanitized=`echo '$nameserver' | egrep -o '([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+|[0-9a-f]+:)'`
235+
nameserver_sanitized=`echo '$nameserver' | /usr/bin/egrep -o '([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+|[0-9a-f]+:)'`
236236
# Add a route to the nameserver out the correct interface
237237
# so that mulitple wans work correctly with multiple dns
238238
# also backup the nameserver for later route removal

0 commit comments

Comments
 (0)