Openwrt/package
Gabor Juhos b7914344ad base-files: add macaddr_canonicalize helper function
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: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38803
2013-11-14 17:44:42 +00:00
..
base-files base-files: add macaddr_canonicalize helper function 2013-11-14 17:44:42 +00:00
boot uboot-sunxi: add U-boot builds for a couple sunxi boards 2013-11-13 10:49:22 +00:00
devel disable mips16 for a few packages that don't compile with it 2013-08-14 14:29:15 +00:00
kernel ath9k: add a fix to improve reliability of high bitrates on AR93xx/AR95xx 2013-11-14 12:21:24 +00:00
libs cyassl: drop obsolete patches 2013-10-30 15:16:59 +00:00
network procd: fixup 2 wrong option types 2013-11-13 11:07:24 +00:00
system zram-swap: fix dependencies 2013-11-13 18:42:45 +00:00
utils procd: fixup 2 wrong option types 2013-11-13 11:07:24 +00:00
Makefile package/index: fix index creating when building without signing 2013-10-02 16:38:28 +00:00