Skip to content
Snippets Groups Projects
Commit f4c90fb9 authored by Mike Hibler's avatar Mike Hibler
Browse files

Fix from main line: don't remove -i option in FBSD6 when we are using

dhclient port
parent 760effca
No related branches found
No related tags found
No related merge requests found
......@@ -24,13 +24,7 @@ _cmdifn=
cnet_dhcp()
{
#
# Argh! FreeBSD >= 6 has rewritten dhclient and it no longer takes
# the -i option. So we remove that option here.
#
dhclient_flags=`echo $dhclient_flags | sed -e 's/-i [0-9][0-9]*//'`
#
# Argh V2! FreeBSD >= 6 dhclient also allows only a single interface
# Argh! FreeBSD >= 6 dhclient also allows only a single interface
# to be specified. I tried to make this work by launching multiple,
# simultaneous dhclients, but that caused EEPROM read failures on
# em devices. So we will use the "pure" port version if it is
......@@ -42,6 +36,13 @@ cnet_dhcp()
${dhclient_program} ${dhclient_flags} $*
else
echo "Using default dhclient..."
#
# Argh redux! FreeBSD >= 6 has rewritten dhclient and it no longer
# takes the -i option. So we remove that option here.
#
dhclient_flags=`echo $dhclient_flags | sed -e 's/-i [0-9][0-9]*//'`
for _if in $*; do
${dhclient_program} ${dhclient_flags} -b $_if
done
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment