View | Details | Raw Unified | Return to bug 8479
Collapse All | Expand All

(-)wireless_tools.28.orig/ifrename.c (-8 / +1 lines)
Lines 1726-1739 Link Here
1726
  memcpy(ifnode->ifname, pos, len); 
1726
  memcpy(ifnode->ifname, pos, len); 
1727
  ifnode->ifname[len] = '\0'; 
1727
  ifnode->ifname[len] = '\0'; 
1728
1728
1729
  /* Check the interface name and issue various pedantic warnings.
1729
  /* Check the interface name and issue various pedantic warnings. */
1730
   * We assume people using takeover want to force interfaces to those
1731
   * names and know what they are doing, so don't bother them... */
1732
  if((!force_takeover) &&
1733
     ((!strcmp(ifnode->ifname, "eth0")) || (!strcmp(ifnode->ifname, "wlan0"))))
1734
    fprintf(stderr,
1735
	    "Warning: Interface name is `%s' at line %d, can't be mapped reliably.\n",
1736
	    ifnode->ifname, linenum);
1737
  if(strchr(ifnode->ifname, ':'))
1730
  if(strchr(ifnode->ifname, ':'))
1738
    fprintf(stderr, "Warning: Alias device `%s' at line %d probably can't be mapped.\n",
1731
    fprintf(stderr, "Warning: Alias device `%s' at line %d probably can't be mapped.\n",
1739
	    ifnode->ifname, linenum);
1732
	    ifnode->ifname, linenum);

Return to bug 8479