Skip to content
Snippets Groups Projects
  1. Oct 14, 2014
  2. Oct 08, 2014
  3. Oct 06, 2014
  4. Sep 16, 2014
  5. Sep 11, 2014
  6. Jun 29, 2014
  7. Apr 08, 2014
  8. Apr 07, 2014
  9. Dec 27, 2013
  10. Nov 25, 2013
  11. Nov 14, 2013
    • Gabor Juhos's avatar
      base-files: add macaddr_canonicalize helper function · b7914344
      Gabor Juhos authored
      In commit r38690, the MAC address canonicalization
      has been converted to use 'tr' instead of 'printf'.
      This only works if with MAC addresses which uses
      the 'xx:xx:xx:xx:xx:xx' format.
      
      However on some boards, the MAC addresses are stored
      in different format in the mtd partition. Some vendors
      are using hyphens or dots as separators instead of
      colons. Also the leading zeroes may be missing from the
      individual octets or those are replaced with spaces.
      
      Add a new function which can be used to convert these
      into the 'xx:xx:xx:xx:xx:xx' format. Also update the
      'mtd_get_mac_ascii' function to use the new helper.
      
      The helper function is based on this code:
        http://isquared.nl/blog/2010/08/11/Bash-function-to-canonicalize-MAC-addresses/
      
      
      
      Signed-off-by: default avatarGabor Juhos <juhosg@openwrt.org>
      
      SVN-Revision: 38803
      b7914344
  12. Nov 08, 2013
  13. Jul 20, 2013
  14. Jun 22, 2013
  15. Jun 21, 2013
  16. Feb 17, 2013
  17. Feb 16, 2013
  18. Dec 27, 2012
  19. Dec 19, 2012
  20. Dec 12, 2012
  21. Jun 05, 2012
  22. Apr 21, 2012
  23. Mar 20, 2012
  24. Mar 02, 2012
  25. Nov 12, 2011
  26. Nov 09, 2011
Loading