aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Dedecker <dedeckeh@gmail.com>2016-07-20 23:40:11 +0200
committerZoltan HERPAI <wigyori@uid0.hu>2016-07-20 23:40:11 +0200
commitea3d5f4d869f5bb7343fd07864f41e63105d011f (patch)
tree7fb8696afecbac5bc94b05b945efe6ef844cc12a
parent5d4d8dd2b64a8fe163dd0803f323ab6e9643acee (diff)
downloadmaster-187ad058-ea3d5f4d869f5bb7343fd07864f41e63105d011f.tar.gz
master-187ad058-ea3d5f4d869f5bb7343fd07864f41e63105d011f.tar.bz2
master-187ad058-ea3d5f4d869f5bb7343fd07864f41e63105d011f.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>
-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
}