base-files: mtd_get_mac_ascii bugfix
authorGabor Juhos <juhosg@openwrt.org>
Fri, 8 Nov 2013 12:16:21 +0000 (12:16 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Fri, 8 Nov 2013 12:16:21 +0000 (12:16 +0000)
commit3d694b5c0f65cf40d2aa3bcd47a83010cf4f58a5
tree95feeca98ce20ce522adba0d9315840b6253c74e
parentf0de62aae5930132e922bb80820684bdc09c28bb
base-files: mtd_get_mac_ascii bugfix

The mtd_get_mac_ascii utility function was broken. This fixes it.

  - Remove the superfluous include of /lib/functions.sh. The
    function is already in that file so it is pointless,
  - only use a variable if the whole key word matches,
  - don't try to process the MAC address if it is empty,
  - use 'tr' to canonicalize the MAC address,

Signed-off-by: Daniel Gimpelevich <daniel@gimpelevich.san-francisco.ca.us>
[juhosg: add more fixes, update commit message]
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 38690
package/base-files/Makefile
package/base-files/files/lib/functions.sh