From 796293dfa96809879d0fc6d8626c10b845bf0a45 Mon Sep 17 00:00:00 2001 From: Justin Maggard Date: Thu, 23 Jun 2011 17:45:45 +0000 Subject: * Add PnP-X info for a couple more models. --- minidlna.c | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'minidlna.c') diff --git a/minidlna.c b/minidlna.c index 1e2301a..de01adb 100644 --- a/minidlna.c +++ b/minidlna.c @@ -264,22 +264,28 @@ getfriendlyname(char * buf, int len) } } fclose(info); + memcpy(pnpx_hwid+4, "01F2", 4); if( strcmp(modelnumber, "NVX") == 0 ) - memcpy(pnpx_hwid+4, "01F2&DEV_0101", 17); + memcpy(pnpx_hwid+17, "0101", 4); else if( strcmp(modelnumber, "Pro") == 0 || strcmp(modelnumber, "Pro 6") == 0 || strncmp(modelnumber, "Ultra 6", 7) == 0 ) - memcpy(pnpx_hwid+4, "01F2&DEV_0102", 17); + memcpy(pnpx_hwid+17, "0102", 4); else if( strcmp(modelnumber, "Pro 2") == 0 || strncmp(modelnumber, "Ultra 2", 7) == 0 ) - memcpy(pnpx_hwid+4, "01F2&DEV_0103", 17); + memcpy(pnpx_hwid+17, "0103", 4); else if( strcmp(modelnumber, "Pro 4") == 0 || strncmp(modelnumber, "Ultra 4", 7) == 0 ) - memcpy(pnpx_hwid+4, "01F2&DEV_0104", 17); + memcpy(pnpx_hwid+17, "0104", 4); else if( strcmp(modelnumber+1, "100") == 0 ) - memcpy(pnpx_hwid+4, "01F2&DEV_0105", 17); + memcpy(pnpx_hwid+17, "0105", 4); else if( strcmp(modelnumber+1, "200") == 0 ) - memcpy(pnpx_hwid+4, "01F2&DEV_0106", 17); + memcpy(pnpx_hwid+17, "0106", 4); + /* 0107 = Stora */ + else if( strcmp(modelnumber, "Duo v2") == 0 ) + memcpy(pnpx_hwid+17, "0108", 4); + else if( strcmp(modelnumber, "NV+ v2") == 0 ) + memcpy(pnpx_hwid+17, "0109", 4); #else char * logname; logname = getenv("LOGNAME"); -- cgit v1.2.3