projects
/
openwrt
/
staging
/
xback.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b7d9bce
)
netifd: on dhcp interfaces, store the dhcp server in interface data
author
Felix Fietkau
<nbd@nbd.name>
Fri, 10 Dec 2021 09:16:18 +0000
(10:16 +0100)
committer
Felix Fietkau
<nbd@nbd.name>
Fri, 10 Dec 2021 10:33:49 +0000
(11:33 +0100)
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>
package/network/config/netifd/files/lib/netifd/dhcp.script
patch
|
blob
|
history
diff --git
a/package/network/config/netifd/files/lib/netifd/dhcp.script
b/package/network/config/netifd/files/lib/netifd/dhcp.script
index e46005d84c634da2816740dc13ff685116903db6..6fcf139beba34b56266206373417cc6cba604366 100755
(executable)
--- 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"