* Add PnP-X info for a couple more models.
This commit is contained in:
parent
9347abcba0
commit
ab2533ea97
18
minidlna.c
18
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");
|
||||
|
@ -56,7 +56,7 @@
|
||||
|
||||
#include <sqlite3.h>
|
||||
|
||||
#define MINIDLNA_VERSION "1.0.20"
|
||||
#define MINIDLNA_VERSION "1.0.20.1"
|
||||
|
||||
#ifdef NETGEAR
|
||||
# define SERVER_NAME "ReadyDLNA"
|
||||
|
Loading…
x
Reference in New Issue
Block a user