Group :: Sistema/Kernel e hardware
RPM: wireless-tools
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Patch: ifrename-28pre10-alt-eth0nowarn.patch
Download
Download
diff -urN wireless_tools.28.orig/ifrename.c wireless_tools.28/ifrename.c
--- wireless_tools.28.orig/ifrename.c 2005-05-27 03:15:55 +0400
+++ wireless_tools.28/ifrename.c 2005-11-27 16:26:06 +0300
@@ -1726,14 +1726,7 @@
memcpy(ifnode->ifname, pos, len);
ifnode->ifname[len] = '\0';
- /* Check the interface name and issue various pedantic warnings.
- * We assume people using takeover want to force interfaces to those
- * names and know what they are doing, so don't bother them... */
- if((!force_takeover) &&
- ((!strcmp(ifnode->ifname, "eth0")) || (!strcmp(ifnode->ifname, "wlan0"))))
- fprintf(stderr,
- "Warning: Interface name is `%s' at line %d, can't be mapped reliably.\n",
- ifnode->ifname, linenum);
+ /* Check the interface name and issue various pedantic warnings. */
if(strchr(ifnode->ifname, ':'))
fprintf(stderr, "Warning: Alias device `%s' at line %d probably can't be mapped.\n",
ifnode->ifname, linenum);