[net] miniupnpd: Added model_number and serial_number uci options for the root desc xml
git-svn-id: svn://svn.openwrt.org/openwrt/packages@25900 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
0c07ec43b5
commit
5823187e08
@ -7,7 +7,7 @@ start() {
|
||||
|
||||
config_load "upnpd"
|
||||
local extiface intiface upload download logging secure enabled natpmp
|
||||
local extip port usesysuptime conffile
|
||||
local extip port usesysuptime conffile serial_number model_number
|
||||
|
||||
config_get extiface config external_iface
|
||||
config_get intiface config internal_iface
|
||||
@ -21,6 +21,8 @@ start() {
|
||||
config_get_bool enabled config enabled 0
|
||||
config_get_bool usesysuptime config use_system_uptime 1
|
||||
config_get conffile config config_file
|
||||
config_get serial_number config serial_number
|
||||
config_get model_number config model_number
|
||||
|
||||
include /lib/network
|
||||
scan_interfaces
|
||||
@ -59,6 +61,12 @@ start() {
|
||||
[ -n "$conffile" ] && \
|
||||
append args "-f $conffile"
|
||||
|
||||
[ -n "${serial_number}" ] && \
|
||||
append args "-s ${serial_number}"
|
||||
|
||||
[ -n "${model_number}" ] && \
|
||||
append args "-m ${model_number}"
|
||||
|
||||
# start firewall
|
||||
local zone
|
||||
config_load firewall
|
||||
|
Loading…
x
Reference in New Issue
Block a user