mirror of
https://github.com/opnsense/src.git
synced 2026-04-02 07:55:21 -04:00
Add very limited support for the isc-dhclient. It will almostly certaintly
only work if there's just one interface doing dhcp. This version implements the same logic as the version in the PR, but uses pgrep to be less verbose. PR: conf/95905 MFC after: 1 week
This commit is contained in:
parent
8ca3089abc
commit
688e303c19
1 changed files with 4 additions and 0 deletions
|
|
@ -26,6 +26,10 @@ dhclient_start()
|
|||
if [ -n "$pids" ]; then
|
||||
exit 0
|
||||
fi
|
||||
elif [ -e /var/run/dhclient.pid ]; then
|
||||
if [ -n "`pgrep -F /var/run/dhclient.pid`" ]; then
|
||||
exit 0
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue