projects
/
openwrt
/
staging
/
rmilecki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
351ca63
)
add option configure a custom netmask for dhcp clients Signed-off-by: Lorenz Schori...
author
Travis Kemen
<thepeople@openwrt.org>
Thu, 17 Jan 2008 01:15:50 +0000
(
01:15
+0000)
committer
Travis Kemen
<thepeople@openwrt.org>
Thu, 17 Jan 2008 01:15:50 +0000
(
01:15
+0000)
SVN-Revision: 10216
package/dnsmasq/files/dnsmasq.init
patch
|
blob
|
history
diff --git
a/package/dnsmasq/files/dnsmasq.init
b/package/dnsmasq/files/dnsmasq.init
index 776daddb41d20cfdca1efef9362aafe644a0a2cc..44255045097254fb32a6a10c5fc21586dfd303f5 100644
(file)
--- a/
package/dnsmasq/files/dnsmasq.init
+++ b/
package/dnsmasq/files/dnsmasq.init
@@
-188,7
+188,8
@@
dhcp_add() {
[ static = "$proto" ] || return 0
config_get ipaddr "$net" ipaddr
- config_get netmask "$net" netmask
+ config_get netmask "$cfg" netmask
+ [ -n "$netmask" ] || config_get netmask "$net" netmask
#check for an already active dhcp server on the interface, unless 'force' is set
config_get_bool force "$cfg" force 0