summaryrefslogtreecommitdiffstats
path: root/package/network/config
diff options
context:
space:
mode:
authorHans Dedecker <dedeckeh@gmail.com>2016-07-12 14:23:58 +0200
committerJo-Philipp Wich <jo@mein.io>2016-07-12 14:33:49 +0200
commit99e5bec2c6da0f676f6662cabab4602854d54012 (patch)
tree5df1caa97737e1d403731d2715ade482746eb1f5 /package/network/config
parentcef1f4ef2b279a68234fd4f37fcc6608fa2dda3e (diff)
downloadmaster-31e0f0ae-99e5bec2c6da0f676f6662cabab4602854d54012.tar.gz
master-31e0f0ae-99e5bec2c6da0f676f6662cabab4602854d54012.tar.bz2
master-31e0f0ae-99e5bec2c6da0f676f6662cabab4602854d54012.zip
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>
Diffstat (limited to 'package/network/config')
-rwxr-xr-xpackage/network/config/netifd/files/lib/netifd/proto/dhcp.sh4
1 files changed, 2 insertions, 2 deletions
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
}