From ea3d5f4d869f5bb7343fd07864f41e63105d011f Mon Sep 17 00:00:00 2001 From: Hans Dedecker Date: Wed, 20 Jul 2016 23:40:11 +0200 Subject: 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 --- package/network/config/netifd/files/lib/netifd/proto/dhcp.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'package/network/config') 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 } -- cgit v1.2.3