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>
This commit is contained in:
Hans Dedecker 2016-07-12 14:23:58 +02:00 committed by Jo-Philipp Wich
parent cef1f4ef2b
commit 99e5bec2c6

View file

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