summaryrefslogtreecommitdiffstats
path: root/src/usr/local/pkg/miniupnpd.inc
diff options
context:
space:
mode:
authorJosh Galvez (zevlag) <josh@zevlag.com>2016-03-11 17:03:45 -0700
committerJosh Galvez (zevlag) <josh@zevlag.com>2016-03-11 17:03:45 -0700
commitc401e41e0679ca3642fcdf0c702c0fe84e5dbd66 (patch)
treebe1b02d76235c6794af72f904f7b3f4a38142edf /src/usr/local/pkg/miniupnpd.inc
parentc3a74b4e2b0fdc34faf1d69887f392b61a3b310f (diff)
downloadpfsense-c401e41e0679ca3642fcdf0c702c0fe84e5dbd66.zip
pfsense-c401e41e0679ca3642fcdf0c702c0fe84e5dbd66.tar.gz
Make model_number customizable
Diffstat (limited to 'src/usr/local/pkg/miniupnpd.inc')
-rw-r--r--src/usr/local/pkg/miniupnpd.inc7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/usr/local/pkg/miniupnpd.inc b/src/usr/local/pkg/miniupnpd.inc
index 4a132dd..b2d8b71 100644
--- a/src/usr/local/pkg/miniupnpd.inc
+++ b/src/usr/local/pkg/miniupnpd.inc
@@ -243,8 +243,11 @@
$config_text .= "serial=".strtoupper(substr(upnp_uuid(), 0, 8))."\n";
/* set model number */
- $config_text .= "model_number=" . $g['product_version'] . "\n";
-
+ if (!empty($upnp_config['modelnumber'])){
+ $config_text .= "model_number=" . $upnp_config['modelnumber'] . "\n";
+ } else {
+ $config_text .= "model_number=" . $g['product_version'] . "\n";
+ }
/* upnp access restrictions */
if (is_array($upnp_config['row'])) {
foreach ($upnp_config['row'] as $row) {
OpenPOWER on IntegriCloud