prefer isc-dhcp on freebsd
This commit is contained in:
parent
c4039d5191
commit
022ea31874
6
tinc-up
6
tinc-up
@ -75,7 +75,13 @@ 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
|
||||
else
|
||||
nohup setsid dhclient "$interface" >/dev/null 2>&1
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user