mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-20 16:02:59 +02:00
functions.network: update dhcp client commandline.
this fix trailing space before hostname.
This commit is contained in:
@@ -75,7 +75,7 @@ dhcpcd_start() {
|
||||
fi
|
||||
|
||||
# Start dhcpcd.
|
||||
/sbin/dhcpcd "${device}" "${dhcp_start}" >/dev/null 2>&1
|
||||
/sbin/dhcpcd ${dhcp_start} ${device} >/dev/null 2>&1
|
||||
ret="$?"
|
||||
|
||||
if [ "${ret}" -eq 0 ]; then
|
||||
@@ -124,7 +124,7 @@ dhcpcd_stop() {
|
||||
fi
|
||||
|
||||
# Stop dhcpcd.
|
||||
/sbin/dhcpcd "${device}" "${dhcp_stop}" &> /dev/null
|
||||
/sbin/dhcpcd ${dhcp_stop} ${device} &> /dev/null
|
||||
ret="$?"
|
||||
|
||||
# Wait until dhcpd has stopped.
|
||||
|
||||
Reference in New Issue
Block a user