mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-13 04:22:58 +02:00
functions.network: update dhcp client commandline.
this fix trailing space before hostname.
This commit is contained in:
@@ -2,6 +2,7 @@ etc/system-release
|
||||
etc/issue
|
||||
etc/rc.d/init.d/firewall
|
||||
etc/rc.d/init.d/network-trigger
|
||||
etc/rc.d/init.d/networking/functions.network
|
||||
etc/rc.d/init.d/networking/red.up/99-geoip-database
|
||||
etc/rc.d/rcsysinit.d/S90network-trigger
|
||||
srv/web/ipfire/cgi-bin/firewall.cgi
|
||||
|
||||
@@ -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