From: Hans Dedecker Date: Tue, 12 Jul 2016 12:23:58 +0000 (+0200) Subject: netifd: quote vendorid and hostname variables in dhcp script X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=99e5bec2c6da0f676f6662cabab4602854d54012;p=openwrt%2Fstaging%2Faparcar.git 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 --- diff --git a/package/network/config/netifd/files/lib/netifd/proto/dhcp.sh b/package/network/config/netifd/files/lib/netifd/proto/dhcp.sh index 7085bd2aa6..abfdaaffdd 100755 --- a/package/network/config/netifd/files/lib/netifd/proto/dhcp.sh +++ b/package/network/config/netifd/files/lib/netifd/proto/dhcp.sh @@ -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 }