mirror of
https://github.com/opnsense/src.git
synced 2026-06-13 18:50:31 -04:00
follow dhcp_* changes.
This commit is contained in:
parent
05674b755f
commit
f9b96756eb
1 changed files with 7 additions and 5 deletions
|
|
@ -28,14 +28,16 @@ start_dhcp() {
|
|||
sleep ${pccard_ether_delay}
|
||||
;;
|
||||
esac
|
||||
if [ -x "${dhcp_program}" ]; then
|
||||
if [ `basename ${dhcp_program}` = "dhclient" ]; then
|
||||
[ -n "$dhcp_program" ] && dhclient_program="$dhcp_program"
|
||||
[ -n "$dhcp_flags" ] && dhclient_flags="$dhcp_flags"
|
||||
if [ -x "${dhclient_program}" ]; then
|
||||
if [ `basename ${dhclient_program}` = "dhclient" ]; then
|
||||
pidfile="/var/run/dhclient.${interface}.pid"
|
||||
dhcp_flags="${dhcp_flags} -pf ${pidfile}"
|
||||
dhclient_flags="${dhclient_flags} -pf ${pidfile}"
|
||||
fi
|
||||
${dhcp_program} ${dhcp_flags} ${interface}
|
||||
${dhclient_program} ${dhclient_flags} ${interface}
|
||||
else
|
||||
echo "${dhcp_program}: DHCP client software not available"
|
||||
echo "${dhclient_program}: DHCP client software not available"
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue