mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-03-12 05:19:11 +02:00
Fix missing IP section to properly add static hosts (#2650)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9502 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
a3d3ab2610
commit
02ab35ee7f
@ -144,6 +144,8 @@ dhcp_host_add() {
|
|||||||
config_get mac "$cfg" mac
|
config_get mac "$cfg" mac
|
||||||
[ -n "$mac" ] || return 0
|
[ -n "$mac" ] || return 0
|
||||||
|
|
||||||
|
config_get ip "$cfg" ip
|
||||||
|
[ -n "$ip" ] || return 0
|
||||||
|
|
||||||
append args "--dhcp-host=$mac,$ip"
|
append args "--dhcp-host=$mac,$ip"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user