1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
Description: Use dhclient by default
dhcpcd does not really exist on Debian.
Forwarded: not-needed
Author: Yangfl <mmyangfl@gmail.com>
diff --git a/src/lib/ip b/src/lib/ip
index 595fcd4..93f8a95 100644
--- a/src/lib/ip
+++ b/src/lib/ip
@@ -66,7 +66,7 @@ ip_set() {
case $IP in
dhcp)
- dhcp_call "${DHCPClient:-dhcpcd}" start 4 || return
+ dhcp_call "${DHCPClient:-dhclient}" start 4 || return
;;
static)
for addr in "${Address[@]}"; do
@@ -170,7 +170,7 @@ ip_set() {
# $IP: type of IPv4 configuration
# $IP6: type of IPv6 configuration
ip_unset() {
- [[ $IP == "dhcp" ]] && dhcp_call "${DHCPClient:-dhcpcd}" stop 4
+ [[ $IP == "dhcp" ]] && dhcp_call "${DHCPClient:-dhclient}" stop 4
[[ $IP6 == dhcp* ]] && dhcp_call "${DHCP6Client:-dhclient}" stop 6
[[ $Hostname ]] && do_debug hostnamectl --transient set-hostname ""
[[ $DNS ]] && resolvconf -d "$Interface"
|