remove deprecated dhcpv6 on freebsd

This commit is contained in:
Jörg Thalheim 2015-02-21 09:41:33 +01:00
parent 34ba3b555a
commit 8d077a2107
1 changed files with 1 additions and 7 deletions

View File

@ -4,13 +4,7 @@ start_dhclient() {
dhclient -x
dhclient -nw "$interface"
elif [[ "$OSTYPE" == "freebsd"* ]]; then
# prefer isc-dhcp-client as it supports dhcpv6
if [[ -x /usr/local/sbin/dhclient ]]; then
/usr/local/sbin/dhclient -x
/usr/local/sbin/dhclient -nw "$interface"
else
dhclient -b "$interface"
fi
dhclient -b "$interface"
else
nohup setsid dhclient "$interface" >/dev/null 2>&1
fi