You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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
11 years ago
..
base-files base-files: add macaddr_canonicalize helper function 11 years ago
boot uboot-sunxi: add U-boot builds for a couple sunxi boards 11 years ago
devel disable mips16 for a few packages that don't compile with it 11 years ago
kernel ath9k: add a fix to improve reliability of high bitrates on AR93xx/AR95xx 11 years ago
libs cyassl: drop obsolete patches 11 years ago
network procd: fixup 2 wrong option types 11 years ago
system zram-swap: fix dependencies 11 years ago
utils procd: fixup 2 wrong option types 11 years ago
Makefile package/index: fix index creating when building without signing 11 years ago