prefer isc-dhcp on freebsd
This commit is contained in:
parent
c4039d5191
commit
022ea31874
8
tinc-up
8
tinc-up
@ -75,7 +75,13 @@ start_dhclient() {
|
|||||||
dhclient -x
|
dhclient -x
|
||||||
dhclient -nw "$interface"
|
dhclient -nw "$interface"
|
||||||
elif [[ "$OSTYPE" == "freebsd"* ]]; then
|
elif [[ "$OSTYPE" == "freebsd"* ]]; then
|
||||||
dhclient -b "$interface"
|
# 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
|
else
|
||||||
nohup setsid dhclient "$interface" >/dev/null 2>&1
|
nohup setsid dhclient "$interface" >/dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user