OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.8 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../rt2500/eth-naming.patch
  5. # Copyright (C) 2006 The OpenSDE Project
  6. # Copyright (C) 2006 The T2 SDE Project
  7. #
  8. # More information can be found in the files COPYING and README.
  9. #
  10. # This patch file is dual-licensed. It is available under the license the
  11. # patched project is licensed under, as long as it is an OpenSource license
  12. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  13. # of the GNU General Public License as published by the Free Software
  14. # Foundation; either version 2 of the License, or (at your option) any later
  15. # version.
  16. # --- SDE-COPYRIGHT-NOTE-END ---
  17. --- rt2500-1.1.0-b4/Module/rtmp_main.c.orig 2006-08-23 07:40:36.000000000 +0200
  18. +++ rt2500-1.1.0-b4/Module/rtmp_main.c 2006-08-23 07:41:44.000000000 +0200
  19. @@ -60,7 +60,7 @@
  20. static char *ifname = NULL ;
  21. MODULE_PARM(ifname, "s");
  22. -MODULE_PARM_DESC(ifname, "Network device name (default ra%d)");
  23. +MODULE_PARM_DESC(ifname, "Network device name (default eth%d)");
  24. #else
  25. int debug = 0; /* Default is off. */
  26. module_param(debug, int, 0);
  27. @@ -68,7 +68,7 @@
  28. static char *ifname = NULL ;
  29. module_param(ifname, charp, 0);
  30. -MODULE_PARM_DESC(ifname, "Network device name (default ra%d)");
  31. +MODULE_PARM_DESC(ifname, "Network device name (default eth%d)");
  32. #endif /* LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 0) */
  33. // Following information will be show when you run 'modinfo'
  34. @@ -267,7 +267,7 @@
  35. // register_netdev() will call dev_alloc_name() for us
  36. // TODO: Remove the following line to keep the default eth%d name
  37. if (ifname == NULL)
  38. - strcpy(net_dev->name, "ra%d");
  39. + strcpy(net_dev->name, "eth%d");
  40. else
  41. strncpy(net_dev->name, ifname, IFNAMSIZ);