* Add PnP-X info for a couple more models.

This commit is contained in:
Justin Maggard 2011-06-23 17:45:45 +00:00
parent 9347abcba0
commit ab2533ea97
2 changed files with 13 additions and 7 deletions

View File

@ -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");

View File

@ -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"