Does this patch break people's scripts?

--- a/toys/net/ifconfig.c
+++ b/toys/net/ifconfig.c
@@ -125,6 +125,9 @@ static void display_ifconfig(char *name, int always, 
unsigned long long val[])
     xprintf("HWaddr ");
     for (i=0; i<6; i++) xprintf(":%02x"+!i, ifre.ifr_hwaddr.sa_data[i]);
   }
+  sprintf(toybuf, "/sys/class/net/%.15s/device/driver", name);
+  if (readlink0(toybuf, toybuf, sizeof(toybuf))>0 && (pp = strrchr(toybuf, 
'/')))
+    xprintf("  Driver %s", pp+1);
   xputc('\n');

Rob
_______________________________________________
Toybox mailing list
Toybox@lists.landley.net
http://lists.landley.net/listinfo.cgi/toybox-landley.net

Reply via email to