aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2021-12-10 10:16:18 +0100
committerFelix Fietkau <nbd@nbd.name>2021-12-10 11:33:49 +0100
commitbaba2fdaa60c2f2426ec09eaacd6dfb7cec3fd2c (patch)
tree0f9b85311213413172831377edcdc02f8b020130 /package
parentb7d9bced3056d37857292670ed1a29084ecb0aa1 (diff)
downloadupstream-baba2fdaa60c2f2426ec09eaacd6dfb7cec3fd2c.tar.gz
upstream-baba2fdaa60c2f2426ec09eaacd6dfb7cec3fd2c.tar.bz2
upstream-baba2fdaa60c2f2426ec09eaacd6dfb7cec3fd2c.zip
netifd: on dhcp interfaces, store the dhcp server in interface data
Among other things, this can be used to auto-configure the DHCP server address for wireless APs using FILS, if the bridged interface is configured to DHCP Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'package')
-rwxr-xr-xpackage/network/config/netifd/files/lib/netifd/dhcp.script1
1 files changed, 1 insertions, 0 deletions
diff --git a/package/network/config/netifd/files/lib/netifd/dhcp.script b/package/network/config/netifd/files/lib/netifd/dhcp.script
index e46005d84c..6fcf139beb 100755
--- a/package/network/config/netifd/files/lib/netifd/dhcp.script
+++ b/package/network/config/netifd/files/lib/netifd/dhcp.script
@@ -60,6 +60,7 @@ setup_interface () {
[ -n "$message" ] && json_add_string message "$message"
[ -n "$timezone" ] && json_add_int timezone "$timezone"
[ -n "$lease" ] && json_add_int leasetime "$lease"
+ [ -n "$serverid" ] && json_add_string dhcpserver "$serverid"
proto_close_data
proto_send_update "$INTERFACE"