mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
drivertool: fix device names, add backwards compatibility
This commit is contained in:
@@ -137,8 +137,8 @@ static struct ioctl_list n[] = {
|
|||||||
|
|
||||||
static const char *devices[2] =
|
static const char *devices[2] =
|
||||||
{
|
{
|
||||||
"/dev/cs_display",
|
"/dev/display",
|
||||||
"/dev/cs_ir"
|
"/dev/input/nevis_ir"
|
||||||
};
|
};
|
||||||
|
|
||||||
void usage(void)
|
void usage(void)
|
||||||
@@ -234,7 +234,9 @@ int main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
ret = 0;
|
ret = 0;
|
||||||
while (n[i].text != NULL && strcmp(n[i].text, argv[1]) != 0)
|
/* allow the old VFD_ names for backwards compatibility */
|
||||||
|
while (n[i].text != NULL && strcmp(n[i].text, argv[1]) != 0 &&
|
||||||
|
!(strncmp(argv[1], "VFD_", 4) == 0 && strcmp(n[i].text + 2, argv[1] + 3) == 0))
|
||||||
i++;
|
i++;
|
||||||
|
|
||||||
if (!n[i].text || (n[i].type != TYPE_UINT_GET && argc < 3))
|
if (!n[i].text || (n[i].type != TYPE_UINT_GET && argc < 3))
|
||||||
|
Reference in New Issue
Block a user