functions.network: update dhcp client commandline.

this fix trailing space before hostname.
This commit is contained in:
Arne Fitzenreiter
2015-04-20 22:48:46 +02:00
parent 1245aa72df
commit 2e28ecea3e
2 changed files with 3 additions and 2 deletions

View File

@@ -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

View File

@@ -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.