Accepting request 722585 from home:dirkmueller:branches:network:dhcp
- dhclient-script: replace host(1) with getent, which is more lightweight (part of glibc and does not pull in bind-utils) OBS-URL: https://build.opensuse.org/request/show/722585 OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=199
This commit is contained in:
parent
b264d424ef
commit
8ac6ae2920
@ -312,8 +312,8 @@ set_hostname()
|
|||||||
if [ "x${new_host_name}" != "x" ]; then
|
if [ "x${new_host_name}" != "x" ]; then
|
||||||
hostname "${new_host_name}"
|
hostname "${new_host_name}"
|
||||||
else
|
else
|
||||||
if [ -x /usr/bin/host ] ; then
|
if [ -x /usr/bin/getent ] ; then
|
||||||
if out=`host -W 2 "$new_ip_address" 2>/dev/null` ; then
|
if out=`timeout 2s /usr/bin/getent hosts "$new_ip_address" 2>/dev/null` ; then
|
||||||
_hostname="`echo "$out" | sed 's:^.* ::; s:\..*::; s:.*[)]::'`"
|
_hostname="`echo "$out" | sed 's:^.* ::; s:\..*::; s:.*[)]::'`"
|
||||||
[[ ${_hostname} =~ ${rx_host} ]] || unset _hostname
|
[[ ${_hostname} =~ ${rx_host} ]] || unset _hostname
|
||||||
if [ "x${_hostname}" != "x" -a \
|
if [ "x${_hostname}" != "x" -a \
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Aug 8 12:19:53 UTC 2019 - Dirk Mueller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- dhclient-script: replace host(1) with getent, which is more
|
||||||
|
lightweight (part of glibc and does not pull in bind-utils)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Aug 2 06:58:43 UTC 2019 - Martin Liška <mliska@suse.cz>
|
Fri Aug 2 06:58:43 UTC 2019 - Martin Liška <mliska@suse.cz>
|
||||||
|
|
||||||
|
@ -111,7 +111,7 @@ Requires(pre): group(nogroup)
|
|||||||
%package client
|
%package client
|
||||||
Summary: ISC DHCP Client
|
Summary: ISC DHCP Client
|
||||||
Group: Productivity/Networking/Boot/Clients
|
Group: Productivity/Networking/Boot/Clients
|
||||||
Requires: %{_bindir}/host
|
Requires: %{_bindir}/getent
|
||||||
Requires: %{_bindir}/touch
|
Requires: %{_bindir}/touch
|
||||||
Requires: dhcp = %{version}
|
Requires: dhcp = %{version}
|
||||||
Requires: iproute2
|
Requires: iproute2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user