netifd: rename customopts to sendopts for consistency
SVN-Revision: 38437
This commit is contained in:
parent
c759b49a4f
commit
56bc536713
1 changed files with 4 additions and 4 deletions
|
@ -13,22 +13,22 @@ proto_dhcp_init_config() {
|
||||||
proto_config_add_boolean "broadcast"
|
proto_config_add_boolean "broadcast"
|
||||||
proto_config_add_string "reqopts"
|
proto_config_add_string "reqopts"
|
||||||
proto_config_add_string "iface6rd"
|
proto_config_add_string "iface6rd"
|
||||||
proto_config_add_string "customopts"
|
proto_config_add_string "sendopts"
|
||||||
}
|
}
|
||||||
|
|
||||||
proto_dhcp_setup() {
|
proto_dhcp_setup() {
|
||||||
local config="$1"
|
local config="$1"
|
||||||
local iface="$2"
|
local iface="$2"
|
||||||
|
|
||||||
local ipaddr hostname clientid vendorid broadcast reqopts iface6rd customopts
|
local ipaddr hostname clientid vendorid broadcast reqopts iface6rd sendopts
|
||||||
json_get_vars ipaddr hostname clientid vendorid broadcast reqopts iface6rd customopts
|
json_get_vars ipaddr hostname clientid vendorid broadcast reqopts iface6rd sendopts
|
||||||
|
|
||||||
local opt dhcpopts
|
local opt dhcpopts
|
||||||
for opt in $reqopts; do
|
for opt in $reqopts; do
|
||||||
append dhcpopts "-O $opt"
|
append dhcpopts "-O $opt"
|
||||||
done
|
done
|
||||||
|
|
||||||
for opt in $customopts; do
|
for opt in $sendopts; do
|
||||||
append dhcpopts "-x $opt"
|
append dhcpopts "-x $opt"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue