netifd: quote vendorid and hostname variables in dhcp script

Quote hostname and vendorid variables in dhcp script so they can
hold strings having white spaces

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
lede-17.01
Hans Dedecker 2016-07-12 14:23:58 +02:00 committed by Jo-Philipp Wich
parent cef1f4ef2b
commit 99e5bec2c6
1 changed files with 2 additions and 2 deletions

View File

@ -56,8 +56,8 @@ proto_dhcp_setup() {
-s /lib/netifd/dhcp.script \
-f -t 0 -i "$iface" \
${ipaddr:+-r $ipaddr} \
${hostname:+-H $hostname} \
${vendorid:+-V $vendorid} \
${hostname:+-H "$hostname"} \
${vendorid:+-V "$vendorid"} \
$clientid $broadcast $release $dhcpopts
}